JDK-8025842 : Convert warning("Thread holding lock at safepoint that vm can block on") to fatal(...)
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs25
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-10-02
  • Updated: 2015-01-21
  • Resolved: 2014-03-04
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 8 JDK 9
8u40Fixed 9 b06Fixed
Related Reports
Relates :  
Description
Convert warning("Thread holding lock at safepoint that vm can block on")  to fatal(...).

Warnings are mostly ignored during testing - tests rarely looks at VM output. 
This warning may manifest about serious problem which is hard to diagnose (deadlock between VM thread & suspended Java thread). 

The crash log will contain enough information to find the place where a VM lock is taken, since the check is performed on a thread which hold the lock. 

Inspired by JDK-8023461.  
Comments
Can you elaborate on what's the risk of this change? The code is present only in non-product builds.
04-10-2013

We think this is too risky to change in JDK8 at this point, let's revisit this in 8uX.
04-10-2013

hi Vlad. When I took the issue it was unassigned - I was just about to start working on it, so please feel free to take it back.
03-10-2013

Gerard, have you already started working on it? I thought I assigned to myself when submitted the bug. Proposed fix: http://cr.openjdk.java.net/~vlivanov/8025842/webrev.00/
03-10-2013