United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6666698 EnableBiasedLocking with BiasedLockingStartupDelay can block Watcher thread
6666698 : EnableBiasedLocking with BiasedLockingStartupDelay can block Watcher thread

Details
Type:
Bug
Submit Date:
2008-02-22
Status:
Closed
Updated Date:
2011-04-20
Project Name:
JDK
Resolved Date:
2011-04-20
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs12

Related Reports
Backport:
Backport:
Relates:
Relates:
Relates:

Sub Tasks

Description
When run with -XX:+CacheTimeMillis the attached testcase appears to lose time because the cached time is not getting updated after ~4 seconds into the run.

It is caused by the following.  The EnableBiasedLocking PeriodicTask runs on the Watcher thread when BiasedLockingStartupDelay > 0.  It attempts to synchronously reach a safepoint, blocking the watcher thread, after the delay.  If a safepoint cannot be reached relatively quickly, since CacheTimeMillis relies on a responsive watcher thread, the cached time may not get updated promptly.

                                    

Comments
EVALUATION

Fix per comments.
                                     
2008-02-22



Hardware and Software, Engineered to Work Together