Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 89423 invoked from network); 20 Apr 2007 10:28:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Apr 2007 10:28:37 -0000 Received: (qmail 70672 invoked by uid 500); 20 Apr 2007 10:28:43 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 70640 invoked by uid 500); 20 Apr 2007 10:28:42 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 70616 invoked by uid 99); 20 Apr 2007 10:28:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2007 03:28:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2007 03:28:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 85811714043 for ; Fri, 20 Apr 2007 03:28:15 -0700 (PDT) Message-ID: <199525.1177064895544.JavaMail.jira@brutus> Date: Fri, 20 Apr 2007 03:28:15 -0700 (PDT) From: "Eugene S. Ostrovsky (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3713) [classlib][launcher] DetachCurrentThread() is called before DestroyJavaVM() In-Reply-To: <18183110.1177064535482.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eugene S. Ostrovsky updated HARMONY-3713: ----------------------------------------- Attachment: H3713-Fix.patch Attached patch: H3713-Fix.patch Proposed fix > [classlib][launcher] DetachCurrentThread() is called before DestroyJavaVM() > --------------------------------------------------------------------------- > > Key: HARMONY-3713 > URL: https://issues.apache.org/jira/browse/HARMONY-3713 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Eugene S. Ostrovsky > Attachments: H3713-Fix.patch > > > Spec ( http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/invocation.html#wp16553 ) says: > "The main thread cannot detach itself from the VM. Instead, it must call DestroyJavaVM() to unload the entire VM" > In current launcher implementation (main.c) we have: > ... > (*jvm)->DetachCurrentThread(jvm); > (*jvm)->DestroyJavaVM (jvm); > ... > This bug affects jvmti: HARMONY-3532 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.