Re: Code Review Request: 7197662: (prefs) java/util/prefs/AddNodeChangeListener.java fails by timeout or by "couldn't get file lock"

2012-09-22 Thread Alan Bateman
On 22/09/2012 00:12, Weijun Wang wrote: I think jtreg would automatically reset any changed system property so othervm is not necessary. Have you tried running it with other tests in agentvm mode? Thanks Max There are many areas in the JDK where system properties are read once during initializa

Re: Code Review Request: 7197662: (prefs) java/util/prefs/AddNodeChangeListener.java fails by timeout or by "couldn't get file lock"

2012-09-22 Thread Weijun Wang
Correct, so it depends on how the system properties are used. In my area, sometimes a system property is always re-read so it's safe to run related tests in agentvm. Sometimes it's read at initialization time and a static field is set, if there is no way to reset that static field, your tests