RFR(S/M): Crash with assert(pd != 0L) failed: PcDesc must not be NULL
nils.eliasson at oracle.com
Tue May 24 14:09:55 UTC 2016
The VM fails on "assert(pd != 0L) failed: PcDesc must not be NULL" when
walking the Java frames on the stack after hitting a stack overflow.
The asserts triggers when the trying to find the BCI of an address in an
nmethod. This assert belongs to stack walking code introduced by
JDK-8046936 "JEP 270: Reserved Stack Areas for Critical Sections". The
BCI is not relevant for this code, as we only need the method to find
the annotation. The similar stack walking code in
java_lang_Throwable::fill_in_stack_trace in javaClasses.cpp do not have
the assert in the same position suggesting the assert may have been to
This fix also makes this bug stop reproducing:
"assert(CodeCache::find_blob_unsafe(_pc) == _cb) failed: inconsistent."
I have rewritten and simplified the stack walking code in
SharedRuntime::look_for_reserved_stack_annotated_method removing the
lookup of BCI.
Run :hotspot_all on all platforms with and without -Xcomp
Separately run all uncommontrap tests and the test ReservedStackTest
written for JEP270.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev