sun.management.Agent: the properties.putAll API may fail with ConcurrentModifcationException on multi-thread scenario (original) (raw)

Mandy Chung mandy.chung at oracle.com
Wed Apr 18 05:34:58 UTC 2012


On 4/17/2012 12:33 AM, Deven You wrote:

I think this could still run into CME. System Properties is not a synchronized map and the setter methods (System.setProperty or Properties.put method) doesn't synchronize on the Properties object.

Hi Mandy, I didn't catch you. Do you mean there are other setter methods of System properties in the Agent.java which are not synchronized?

The setter methods I'm referring to are System.setProperty and System.getProperties().put().

Mandy



More information about the core-libs-dev mailing list