You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2006/11/16 17:07:43 UTC

[jira] Closed: (HARMONY-2172) [drlvm][jvmti] ThreadEnd event is generated twice

     [ http://issues.apache.org/jira/browse/HARMONY-2172?page=all ]

Gregory Shimansky closed HARMONY-2172.
--------------------------------------


VERIFIED

> [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 <JDK>
> 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=<error 112)
> [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=<error 112)
> [JvmtiAgent] ThreadStart: jni_env=00A88BD0, thread=00A8A218, name=<error 112)
> [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