Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 11691 invoked from network); 16 Nov 2006 10:15:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2006 10:15:01 -0000 Received: (qmail 47233 invoked by uid 500); 16 Nov 2006 10:15:10 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 47132 invoked by uid 500); 16 Nov 2006 10:15:10 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 47121 invoked by uid 99); 16 Nov 2006 10:15:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 02:15:10 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Thu, 16 Nov 2006 02:14:59 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 16F9171431F for ; Thu, 16 Nov 2006 02:14:39 -0800 (PST) Message-ID: <2401947.1163672079091.JavaMail.jira@brutus> Date: Thu, 16 Nov 2006 02:14:39 -0800 (PST) From: "Ivan Popov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-2172) [drlvm][jvmti] ThreadEnd event is generated twice In-Reply-To: <30831560.1163424817133.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 [ http://issues.apache.org/jira/browse/HARMONY-2172?page=comments#action_12450336 ] Ivan Popov commented on HARMONY-2172: ------------------------------------- Thank you. Verified for r474860. > [drlvm][jvmti] ThreadEnd event is generated twice > ------------------------------------------------- > > Key: HARMONY-2172 > URL: http://issues.apache.org/jira/browse/HARMONY-2172 > Project: Harmony > Issue Type: Bug > Components: DRLVM, App-Oriented Bug Reports > Environment: Windows/ia32, Linux/ia32 > Reporter: Ivan Popov > Assigned To: Gregory Shimansky > Attachments: H-2172-ThreadStart-event-duplication-fixed.patch, ThreadEvents.zip > > > DRLVM generates ThreadEnd event twice for the main thread. This confuses JVMTI profiling agent used in Eclipse TPTP profiler. To reproduce this problem run HelloWorld with JVMTI agent from the attached archiive: > run > Running it with DRLVM [r473588] shows the error: > -------------------------------------------------------------------- > > run.bat drl_20061112_win_ia32_0002_msvc_r_H > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > java version "1.5.0" > pre-alpha : not complete or compatible > svn = rsvn: This client is too old to work with working copy '.'; please get a newer Subversion client, (Nov 12 2006), W > indows/ia32/msvc 1310, release build > http://incubator.apache.org/harmony > [JvmtiAgent] ThreadStart: jni_env=02482B78, thread=02484A10, name= [JvmtiAgent] VMInit: jni_env=01019B00, thread=02476520 > [JvmtiAgent] ThreadStart: jni_env=01019B00, thread=02471778, name=main > Hello world! > [JvmtiAgent] ThreadEnd: jni_env=01019B00, thread=02471778, name=main > [JvmtiAgent] ThreadEnd: jni_env=01019B00, thread=02471778, name=main > [JvmtiAgent] ERROR: ThreadEnd event for this jni_env does not have a matching ThreadStart event > -------------------------------------------------------------------- > With Sun J2SE 1.5.0 this produces the following output: > -------------------------------------------------------------------- > > run sun-jdk1.5.0_06-windows-ia32 > [JvmtiAgent] ThreadStart: jni_env=00A88118, thread=00A89850, name= [JvmtiAgent] ThreadStart: jni_env=00A88BD0, thread=00A8A218, name= [JvmtiAgent] VMInit: jni_env=00038958, thread=00A86228 > [JvmtiAgent] ThreadStart: jni_env=00A92678, thread=00A94070, name=Signal Dispatcher > [JvmtiAgent] ThreadStart: jni_env=00038958, thread=00A86228, name=main > java version "1.5.0_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) > Hello world! > [JvmtiAgent] ThreadEnd: jni_env=00038958, thread=00A86228, name=main > [JvmtiAgent] ThreadStart: jni_env=00038958, thread=00A87F80, name=DestroyJavaVM > [JvmtiAgent] ThreadEnd: jni_env=00038958, thread=00A87F80, name=DestroyJavaVM > -------------------------------------------------------------------- -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira