RFR(S): 8064703: crash running specjvm98's javac following 8060252
Roland Westrelin
roland.westrelin at oracle.com
Mon Dec 1 12:28:56 UTC 2014
http://cr.openjdk.java.net/~roland/8064703/webrev.00/
If an arraycopy is used to initialize a just allocated array, when possible we skip the array initialization and let arraycopy do the initialization. If an uncommon trap is triggered after the allocation and before the arraycopy, then an uninitialized array can escape the compiled method to the interpreter. This is fixed by making the uncommon trap resume execution at the allocation rather than the arraycopy and redo the allocation (Vladimir’s suggestion).
Roland.
More information about the hotspot-compiler-dev
mailing list