[10] RFR(S) 8181858: [JVMCI] JVMCI should update the trap counters when invalidating for Reason_not_compiled_exception_handler
Tom Rodriguez
tom.rodriguez at oracle.com
Fri Aug 18 18:40:01 UTC 2017
http://cr.openjdk.java.net/~never/8181858/webrev
https://bugs.openjdk.java.net/browse/JDK-8181858
JVMCI permits trapping when exception handlers haven't been compiled
into the generated code. When this is a normal uncommon trap the
counter in the MDO is updated but when the invalidation is forced during
exception dispatch the counter isn't updated. This leads to
invalidate/recompile cycles that will never terminate because the
compiler doesn't know why the previous invalidation happened. Tested
with a Graal unit test
https://github.com/graalvm/graal/commit/d92dc3f90c0ba1502a9e28a4faf7973ffd9a1889#diff-96a2a5e9fc63d48d47a9ef9722a7c3d9R102.
tom
More information about the hotspot-compiler-dev
mailing list