RFR(XS): 8231058: VerifyOops crashes with assert(_offset >= 0) failed: offset for non comment?
tobias.hartmann at oracle.com
Mon Sep 16 14:19:35 UTC 2019
please review the following patch:
I've accidentally broke CodeStrings::find_last with my patch for JDK-8224624  but didn't notice
because the failure only triggers with -XX:+VerifyOops and apparently we don't have any tests that
execute with that flag.
The problem is that CodeString::offset() should only be called for comments. I've modified the
condition accordingly. I've verified that the behavior is now equivalent to before JDK-8224624.
More information about the hotspot-dev