8205118: CodeStrings::copy() assertion caused by -XX:+VerifyOops -XX:+PrintStubCode
aph at redhat.com
Mon Jun 18 17:02:16 UTC 2018
My recent patch to re-enable the printing of code comments in
PrintStubCode revealed a latent bug in CodeStrings::copy().
VerifyOops uses CodeStrings to hold its assertion strings, and these
are distinguished from code comments by an offset of -1. (Presumably
to make sure they're not interpreted as code comments by the
disassembler.) Unfortunately, CodeStrings::copy() triggers an
assertion failure when it sees any of the assertion strings.
The best fix, IMO, is to correct CodeStrings::copy(): it shouldn't
fail whatever the code strings are.
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the hotspot-dev