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/07 15:15:15 UTC

[jira] Created: (HARMONY-3820) [drlvm][jvmti][gcv5] JVMTI reports wrong threads for main thread group

[drlvm][jvmti][gcv5] JVMTI reports wrong threads for main thread group
----------------------------------------------------------------------

                 Key: HARMONY-3820
                 URL: https://issues.apache.org/jira/browse/HARMONY-3820
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Windows/x86, harmony-jdk-r535765 
            Reporter: Ivan Popov


After switching to GCv5 JVMTI reports wrong threads for the "main" thread group. There ara a lot of "finalizer" threads and no "main" thread. 

To reproduce this run HelloWorld in Eclipse debugger, stop at breakpoint, turn on showing threads groups in the main menu of Debug view and see threads list.

With GCv5:

HelloWorld [Java Application]	
	HelloWorld at localhost:1067	
		Thread Group [system]	
			Thread Group [main]	
				Daemon Thread [ref handler] (Running)	
				Daemon Thread [finalizer] (Running)	
				Daemon Thread [finalizer] (Running)	
				Daemon Thread [finalizer] (Running)	
				Daemon Thread [finalizer] (Running)	
				Daemon Thread [finalizer] (Running)	
				Daemon Thread [finalizer] (Running)	
				Daemon Thread [finalizer] (Running)	
				Daemon Thread [finalizer] (Running)	
				Daemon Thread [finalizer] (Running)

With GCv41 (using -XX:vm.dlls=gc_cc.dll):

HelloWorld [Java Application]	
	HelloWorld at localhost:1045	
		Thread Group [system]	
			Daemon System Thread [FinalizerThread] (Running)	
			Thread Group [main]	
				Thread [main] (Suspended (breakpoint at line 5 in HelloWorld))	
					HelloWorld.main(String[]) line: 5


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-3820) [drlvm][jvmti][thread] JVMTI reports wrong threads for main thread group

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Popov closed HARMONY-3820.
-------------------------------

    Resolution: Fixed

Verified for harmony-jdk-r542123. Now Eclipse debugger shows system threads and thread groups correctly. Thanks.
Closing this issue.


> [drlvm][jvmti][thread] JVMTI reports wrong threads for main thread group
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-3820
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3820
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows/x86, harmony-jdk-r535765 
>            Reporter: Ivan Popov
>            Assignee: Gregory Shimansky
>
> After switching to GCv5 JVMTI reports wrong threads for the "main" thread group. There ara a lot of "finalizer" threads and no "main" thread. 
> To reproduce this run HelloWorld in Eclipse debugger, stop at breakpoint, turn on showing threads groups in the main menu of Debug view and see threads list.
> With GCv5:
> HelloWorld [Java Application]	
> 	HelloWorld at localhost:1067	
> 		Thread Group [system]	
> 			Thread Group [main]	
> 				Daemon Thread [ref handler] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)
> With GCv41 (using -XX:vm.dlls=gc_cc.dll):
> HelloWorld [Java Application]	
> 	HelloWorld at localhost:1045	
> 		Thread Group [system]	
> 			Daemon System Thread [FinalizerThread] (Running)	
> 			Thread Group [main]	
> 				Thread [main] (Suspended (breakpoint at line 5 in HelloWorld))	
> 					HelloWorld.main(String[]) line: 5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3820) [drlvm][jvmti][thread] JVMTI reports wrong threads for main thread group

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499093 ] 

Gregory Shimansky commented on HARMONY-3820:
--------------------------------------------

Ivan, could you please check that the bug is fixed for you? The patch for HARMONY-3909 has been applied and it should fix the bug with group thread group for finalizers.

> [drlvm][jvmti][thread] JVMTI reports wrong threads for main thread group
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-3820
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3820
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows/x86, harmony-jdk-r535765 
>            Reporter: Ivan Popov
>         Assigned To: Gregory Shimansky
>
> After switching to GCv5 JVMTI reports wrong threads for the "main" thread group. There ara a lot of "finalizer" threads and no "main" thread. 
> To reproduce this run HelloWorld in Eclipse debugger, stop at breakpoint, turn on showing threads groups in the main menu of Debug view and see threads list.
> With GCv5:
> HelloWorld [Java Application]	
> 	HelloWorld at localhost:1067	
> 		Thread Group [system]	
> 			Thread Group [main]	
> 				Daemon Thread [ref handler] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)
> With GCv41 (using -XX:vm.dlls=gc_cc.dll):
> HelloWorld [Java Application]	
> 	HelloWorld at localhost:1045	
> 		Thread Group [system]	
> 			Daemon System Thread [FinalizerThread] (Running)	
> 			Thread Group [main]	
> 				Thread [main] (Suspended (breakpoint at line 5 in HelloWorld))	
> 					HelloWorld.main(String[]) line: 5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3820) [drlvm][jvmti][gcv5] JVMTI reports wrong threads for main thread group

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12496546 ] 

Ivan Popov commented on HARMONY-3820:
-------------------------------------

I've checked this issue with the latest Harmony build (r538813) and submitted two separate issues which affect this problem: HARMONY-3893 and HARMONY-3894.

But even if these two issues are fixed, Eclipse still displays no threads if showing thread groups is turned on. It occurs only if top level group "system" contains no threads (in GCv5 all internal GC threads are in "main" group). To fix problem internal GC threds should be created in top level "system" group, not in default "main" group. In this case GC threads will be also considered by Eclipse as system threads and not exposed to a user in default mode.


> [drlvm][jvmti][gcv5] JVMTI reports wrong threads for main thread group
> ----------------------------------------------------------------------
>
>                 Key: HARMONY-3820
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3820
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows/x86, harmony-jdk-r535765 
>            Reporter: Ivan Popov
>
> After switching to GCv5 JVMTI reports wrong threads for the "main" thread group. There ara a lot of "finalizer" threads and no "main" thread. 
> To reproduce this run HelloWorld in Eclipse debugger, stop at breakpoint, turn on showing threads groups in the main menu of Debug view and see threads list.
> With GCv5:
> HelloWorld [Java Application]	
> 	HelloWorld at localhost:1067	
> 		Thread Group [system]	
> 			Thread Group [main]	
> 				Daemon Thread [ref handler] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)
> With GCv41 (using -XX:vm.dlls=gc_cc.dll):
> HelloWorld [Java Application]	
> 	HelloWorld at localhost:1045	
> 		Thread Group [system]	
> 			Daemon System Thread [FinalizerThread] (Running)	
> 			Thread Group [main]	
> 				Thread [main] (Suspended (breakpoint at line 5 in HelloWorld))	
> 					HelloWorld.main(String[]) line: 5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-3820) [drlvm][jvmti][thread] JVMTI reports wrong threads for main thread group

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky reassigned HARMONY-3820:
------------------------------------------

    Assignee: Gregory Shimansky

> [drlvm][jvmti][thread] JVMTI reports wrong threads for main thread group
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-3820
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3820
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows/x86, harmony-jdk-r535765 
>            Reporter: Ivan Popov
>         Assigned To: Gregory Shimansky
>
> After switching to GCv5 JVMTI reports wrong threads for the "main" thread group. There ara a lot of "finalizer" threads and no "main" thread. 
> To reproduce this run HelloWorld in Eclipse debugger, stop at breakpoint, turn on showing threads groups in the main menu of Debug view and see threads list.
> With GCv5:
> HelloWorld [Java Application]	
> 	HelloWorld at localhost:1067	
> 		Thread Group [system]	
> 			Thread Group [main]	
> 				Daemon Thread [ref handler] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)
> With GCv41 (using -XX:vm.dlls=gc_cc.dll):
> HelloWorld [Java Application]	
> 	HelloWorld at localhost:1045	
> 		Thread Group [system]	
> 			Daemon System Thread [FinalizerThread] (Running)	
> 			Thread Group [main]	
> 				Thread [main] (Suspended (breakpoint at line 5 in HelloWorld))	
> 					HelloWorld.main(String[]) line: 5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3820) [drlvm][gcv5][jvmti] JVMTI reports wrong threads for main thread group

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky updated HARMONY-3820:
---------------------------------------

    Summary: [drlvm][gcv5][jvmti] JVMTI reports wrong threads for main thread group  (was: [drlvm][jvmti][gcv5] JVMTI reports wrong threads for main thread group)

> [drlvm][gcv5][jvmti] JVMTI reports wrong threads for main thread group
> ----------------------------------------------------------------------
>
>                 Key: HARMONY-3820
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3820
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows/x86, harmony-jdk-r535765 
>            Reporter: Ivan Popov
>
> After switching to GCv5 JVMTI reports wrong threads for the "main" thread group. There ara a lot of "finalizer" threads and no "main" thread. 
> To reproduce this run HelloWorld in Eclipse debugger, stop at breakpoint, turn on showing threads groups in the main menu of Debug view and see threads list.
> With GCv5:
> HelloWorld [Java Application]	
> 	HelloWorld at localhost:1067	
> 		Thread Group [system]	
> 			Thread Group [main]	
> 				Daemon Thread [ref handler] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)
> With GCv41 (using -XX:vm.dlls=gc_cc.dll):
> HelloWorld [Java Application]	
> 	HelloWorld at localhost:1045	
> 		Thread Group [system]	
> 			Daemon System Thread [FinalizerThread] (Running)	
> 			Thread Group [main]	
> 				Thread [main] (Suspended (breakpoint at line 5 in HelloWorld))	
> 					HelloWorld.main(String[]) line: 5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3820) [drlvm][jvmti][thread] JVMTI reports wrong threads for main thread group

Posted by "Xiao-Feng Li (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xiao-Feng Li updated HARMONY-3820:
----------------------------------

    Summary: [drlvm][jvmti][thread] JVMTI reports wrong threads for main thread group  (was: [drlvm][gcv5][jvmti] JVMTI reports wrong threads for main thread group)

> [drlvm][jvmti][thread] JVMTI reports wrong threads for main thread group
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-3820
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3820
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows/x86, harmony-jdk-r535765 
>            Reporter: Ivan Popov
>
> After switching to GCv5 JVMTI reports wrong threads for the "main" thread group. There ara a lot of "finalizer" threads and no "main" thread. 
> To reproduce this run HelloWorld in Eclipse debugger, stop at breakpoint, turn on showing threads groups in the main menu of Debug view and see threads list.
> With GCv5:
> HelloWorld [Java Application]	
> 	HelloWorld at localhost:1067	
> 		Thread Group [system]	
> 			Thread Group [main]	
> 				Daemon Thread [ref handler] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)	
> 				Daemon Thread [finalizer] (Running)
> With GCv41 (using -XX:vm.dlls=gc_cc.dll):
> HelloWorld [Java Application]	
> 	HelloWorld at localhost:1045	
> 		Thread Group [system]	
> 			Daemon System Thread [FinalizerThread] (Running)	
> 			Thread Group [main]	
> 				Thread [main] (Suspended (breakpoint at line 5 in HelloWorld))	
> 					HelloWorld.main(String[]) line: 5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.