Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.0.0
Description
jshell> var t = java.lang.management.ManagementFactory.getThreadMXBean()t ==> com.sun.management.internal.HotSpotThreadImpl@7daf6ecc jshell> var tt = t.dumpAllThreads(true, true)tt ==> ThreadInfo[10] { "main" prio=5 Id=1 RUNNABLE at ... k$NonfairSync@27fa135a } jshell> for (java.lang.management.ThreadInfo t1: tt) {System.out.println(t1.toString());}"main" prio=5 Id=1 RUNNABLE at java.management@20.0.1/sun.management.ThreadImpl.dumpThreads0(Native Method) at java.management@20.0.1/sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:540) at java.management@20.0.1/sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:527) at REPL.$JShell$12.do_it$Aux($JShell$12.java:7) at REPL.$JShell$12.do_it$($JShell$12.java:11) at java.base@20.0.1/java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(DirectMethodHandle$Holder) at java.base@20.0.1/java.lang.invoke.LambdaForm$MH/0x0000007001008c00.invoke(LambdaForm$MH) at java.base@20.0.1/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder) ... "Reference Handler" daemon prio=10 Id=8 RUNNABLE at java.base@20.0.1/java.lang.ref.Reference.waitForReferencePendingList(Native Method) at java.base@20.0.1/java.lang.ref.Reference.processPendingReferences(Reference.java:246) at java.base@20.0.1/java.lang.ref.Reference$ReferenceHandler.run(Reference.java:208)
the `daemon prio=10` is not available for ThreadInfo of jdk8
Attachments
Issue Links
- links to