Request for reviews (XS): 6561159: Regression test closed/compiler/6434117/TestNativeRevocation behaves unpredictably
Vladimir.Kozlov at Sun.COM
Tue Jan 6 17:46:13 PST 2009
Fixed 6561159: Regression test closed/compiler/6434117/TestNativeRevocation behaves unpredictably
A situation is possible where the test's queue in RevokerThread
becomes rather populated when queue.remove(0) does not keep up
with queue.add(t) since it have to shift all queue's elements,
which leads to queue.remove(0) being very slow, and the whole
test timing out as a result.
Rapid production of Throwable's in the main thread under
these conditions also frequently leads to OutOfMemoryException
(with 64Mb default heap).
Remove an element from the end of the queue to avoid elements shift
which helps to keep the queue small.
Also reduce BiasedLockingStartupDelay to 50ms to test
bias revocation from the start (on modern cpus fixed test runs 2 sec).
Fix verified (y/n): y, bug's test case
More information about the hotspot-compiler-dev