JDK-6992968 : test/java/lang/management/MemoryMXBean/CollectionUsageThresholdConcMarkSweepGC.sh should not hang
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 5.0u32,6u22,7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-10-18
  • Updated: 2014-09-25
  • Resolved: 2010-11-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6 JDK 7
5.0u35Fixed 6u75Fixed 7 b118Fixed
Related Reports
Duplicate :  
Relates :  
Description
The test hangs when it fails because the main thread is waiting for the checker thread to finish checking the result but the checker thread terminates with an exception without informing the main thread about its termination.

Exception in thread "Checker thread" java.lang.RuntimeException: Notif Count = 2 expected to be 1
	at CollectionUsageThreshold$Checker.checkResult(CollectionUsageThreshold.java:213)
	at CollectionUsageThreshold$Checker.run(CollectionUsageThreshold.java:200)

The test should be fixed to exit gracefully.

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/build/jdk/rev/617ada000804
04-12-2010

EVALUATION Changeset URL: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/617ada000804
19-10-2010

EVALUATION Fix the test to exit gracefully when it fails. Also, ignore test/java/lang/management/MemoryMXBean/CollectionUsageThresholdConcMarkSweepGC.sh until 6982965 is fixed.
18-10-2010