RFR (XS): 8025842: Convert warning("Thread holding lock at safepoint that vm can block on", ...) to fatal(...)
igor.veresov at oracle.com
Wed Oct 2 12:52:48 PDT 2013
On Oct 2, 2013, at 11:18 PM, Vladimir Ivanov <vladimir.x.ivanov at oracle.com> wrote:
> 1 line changed: 0 ins; 0 del; 1 mod
> Warnings are mostly ignored during testing - tests rarely looks at VM output. But this check may reveal a serious problem which is hard to diagnose (possible deadlock between VM thread & suspended Java thread).
> If it is converted to an assert, the crash log will contain enough information to find the place where VM lock is acquired, since the check is performed on a thread which hold the lock.
> The change doesn't affect product - the check is guarded by #ifdef ASSERT.
> Inspired by JDK-8023461 
> Testing: JPRT, VM testbase.
> Reviewed-by: ?
> Best regards,
> Vladimir Ivanov
>  https://bugs.openjdk.java.net/browse/JDK-8023461
More information about the hotspot-dev