You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ivan Popov (JIRA)" <ji...@apache.org> on 2007/05/28 14:12:17 UTC
[jira] Commented: (HARMONY-3990) [drlvm][thread]agent test detects
the thread event problem
[ https://issues.apache.org/jira/browse/HARMONY-3990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499550 ]
Ivan Popov commented on HARMONY-3990:
-------------------------------------
I've modified a little attached test to print thread names and eliminate monitor events. I got the following output:
2. run initial class WITH agent
Agent_OnLoad: pVm=010320A0, options=(null)
Agent_OnLoad: OK
1. VMStart : pJniEnv=010925B8
2. VMInit : thread=02042790,208D2928,"main" pJniEnv=010925B8
3. ThreadStart : thread=01EBB440,208D2928,"main" pJniEnv=010925B8
HELLO.world
4. ThreadStart : thread=020C3FF8,208F38E0,"Thread-shutdown" pJniEnv=020BF1D8
5. ThreadEnd : thread=020403A8,20900224,"ref handler" pJniEnv=0203C518
ERROR : ThreadEnd event for unmatched JNI ptr: 0203C518
6. ThreadEnd : thread=02036830,208F8224,"finalizer" pJniEnv=020381D8
ERROR : ThreadEnd event for unmatched JNI ptr: 020381D8
7. VMDeath : pJniEnv=010925B8
It shows that JVMTI events THREAD_START are missed for "ref handler" and "finalizer" threads.
> [drlvm][thread]agent test detects the thread event problem
> ----------------------------------------------------------
>
> Key: HARMONY-3990
> URL: https://issues.apache.org/jira/browse/HARMONY-3990
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Environment: win ia32, msvc, debug
> Reporter: tatyana doubtsova
> Attachments: agent_test.zip
>
>
> To reproduce (thanks to Ruslan Scherbakov)
> unzip attached agent_test.zip, compile HellowWorld.java and run
> > .\run_win.bat <JAVA_HOME>
> =========================================================================================
> 1. run initial class
> 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 = r541992, (May 27 2007), Windows/ia32/msvc 1310, debug build
> http://incubator.apache.org/harmony
> HELLO.world
> =========================================================================================
> 2. run initial class WITH agent
> Agent_OnLoad: pVm=011E2388, options=(null)
> Agent_OnLoad: OK
> 1. VMInit : thread=0284D008,208D2928, pJniEnv=01248760
> 2. ThreadStart : thread=0246DF58,208D2928, pJniEnv=01248760
> HELLO.world
> 3. MonitorWait : thread=0246DF58,208D2928, pJniEnv=01248760, object=0013F1D0,208F3228, timeout=0
> 4. MonitorContendedEnter : thread=0246DF58,208D2928, pJniEnv=01248760, object=0013F1D0,208F3228
> 5. ThreadStart : thread=02919618,208F3184, pJniEnv=02913C78
> 6. MonitorContendedEntered: thread=0246DF58,208D2928, pJniEnv=01248760, object=0013F1D0,208F3228
> 7. MonitorWaited : thread=0246DF58,208D2928, pJniEnv=01248760, object=0013F1D0,208F3228, timeout=0
> 8. MonitorWait : thread=0246DF58,208D2928, pJniEnv=01248760, object=0013F1E0,208F3228, timeout=0
> 9. MonitorContendedEnter : thread=0246DF58,208D2928, pJniEnv=01248760, object=0013F1E0,208F3228
> 10. MonitorContendedEntered: thread=0246DF58,208D2928, pJniEnv=01248760, object=0013F1E0,208F3228
> 11. MonitorWaited : thread=0246DF58,208D2928, pJniEnv=01248760, object=0013F1E0,208F3228, timeout=0
> 12. ThreadEnd : thread=02849220,20900224, pJniEnv=028452F0
> ERROR : ThreadEnd event for unmatched JNI ptr: 028452F0
> 13. ThreadEnd : thread=028425C0,208F8224, pJniEnv=028401F8
> ERROR : ThreadEnd event for unmatched JNI ptr: 028401F8
> 14. ThreadEnd : thread=02919618,208F3184, pJniEnv=02913C78
> 15. VMDeath : pJniEnv=01248760
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.