JDK-7164191 : properties.putAll API may fail with ConcurrentModifcationException on multi-thread scenario
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-04-25
  • Updated: 2013-06-26
  • Resolved: 2012-05-25
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.
JDK 7 JDK 8
7u40Fixed 8 b40Fixed
Description
System.getProperties() returns a globally accessible set of properties. Another thread can modify the system properties while you are iterating them so CME will be thrown.
The following SDK/JDK test is added by this fix:

    sun/management/AgentCMETest.java

Comments
EVALUATION System.getProperties() returns a globally accessible set of properties. Another thread can modify the system properties while you are iterating them so CME will be thrown.
17-05-2012