JDK-8209446 : Unexpected thread count in reset002/TestDescription.java
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 12
  • Priority: P4
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • Submitted: 2018-08-13
  • Updated: 2023-08-02
  • Resolved: 2020-02-19
Related Reports
Relates :  
Description
Use jcmd 44300 JFR.dump name=1 filename=FILEPATH to copy recording data to file.
#>  
#>  WARNING: switching log to verbose mode,
#>      because error is complained
#>  
ThreadMonitor> Test mode:	access to MBean through MBeanServer
ThreadMonitor> MBeanServer:	DEFAULT
# ERROR: getPeakThreadCount() returned 10, but getThreadCount() returned 9 after resetPeakThreadCount().
The following stacktrace is for failure analysis.
nsk.share.TestFailure: getPeakThreadCount() returned 10, but getThreadCount() returned 9 after resetPeakThreadCount().
	at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:428)
	at nsk.share.Log.complain(Log.java:399)
	at nsk.monitoring.ThreadMBean.resetPeakThreadCount.reset001.run(reset001.java:64)
	at nsk.monitoring.ThreadMBean.resetPeakThreadCount.reset001.main(reset001.java:34)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:834)
TEST FAILED
Comments
No failures since JDK 12
19-02-2020

Another variant of JDK-8021335?
13-08-2018