harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2172) [drlvm][jvmti] ThreadEnd event is generated twice
Date Thu, 16 Nov 2006 16:07:43 GMT
     [ 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

        

Mime
View raw message