RFR: 8206267: Unsafe publication of StubCodeDesc leads to crashes

aph aph at redhat.com
Tue Jul 3 14:31:21 UTC 2018

The StubCodeDesc constructor is unsychronized. However, it runs when
the C2 compiler thread is initializing. The compiler thread reads the
StubCodeDesc list while it is in an unstable state, resulting in a
read from an uninitialized pointer field and it then segfaults,
causing the VM to abort.


OK for 11 and 12?

Andrew Haley
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-runtime-dev mailing list