RFR (XS): 8151708: C1 FastTLABRefill can allocate TLABs past the end of the heap
tobias.hartmann at oracle.com
Thu Apr 14 12:15:19 UTC 2016
On 14.04.2016 13:47, Zoltán Majó wrote:
> please review the patch for 8151708.
> Problem: On solaris_sparc, the VM can set the TLAB's top pointer to a value past the end of the Java heap. The problem appears with large values of MinTLABSize.The reason for the problem is that the 'brcs' instruction at
> checks the condition codes in 'icc' (32-bit), but not in 'xcc' (64-bit).
I would simply replace the 'br' by 'brx' which tests either xcc or icc depending on the architecture.
> Solution: As the VM is handling addresses at the above-mentioned locations, the appropriate condition codes are supposed to be checked. Use 'BPcc' instead of 'Bicc' at these locations.
> - JPRT
> - reproducer on solaris_sparc.
> Thank you!
> Best regards,
More information about the hotspot-compiler-dev