RFR(M): 8210754: print_location is not reliable enough (printing register info)

Doerr, Martin martin.doerr at sap.com
Fri Sep 14 14:03:46 UTC 2018


Hi,

I'd like to make os::print_location more reliable which is used in error reporting step "printing register info". Oops and Klasses should get inspected more carefully.
I have seen errors like "[error occurred during error reporting (printing register info), id 0xe0000000, Internal Error (/usr/work/d056149/openjdk/jdk/src/hotspot/share/oops/klass.inline.hpp:63)]" in many hs_err files.

Bug:
https://bugs.openjdk.java.net/browse/JDK-8210754

Webrev:
http://cr.openjdk.java.net/~mdoerr/8210754_print_location/webrev.00/

Sometimes, I get such errors when using -XX:+CrashGCForDumpingJavaThread, sometimes when injecting crashing code into compiled methods which I did by the following code:
http://cr.openjdk.java.net/~mdoerr/crash_C2_method/webrev.00/
I can also contribute this if it's desired. Automatic tests would certainly be nice to have. Maybe I can find some time for that.

Please review.

Best regards,
Martin



More information about the hotspot-runtime-dev mailing list