RFR: 8256732: Zero: broken +ZeroTLAB exposes badly initialized memory
Aleksey Shipilev
shade at openjdk.java.net
Mon Nov 23 08:23:02 UTC 2020
On Sun, 22 Nov 2020 23:03:57 GMT, David Holmes <dholmes at openjdk.org> wrote:
> But isn't the memory returned by ThreadLocalAllocBuffer::allocate implicitly already zeroed when ZeroTLAB is specified?
No! That tripped me too! The comment at `ThreadLocalAllocBuffer::allocate` actually says: `// Allocate size HeapWords. The memory is NOT initialized to zero.`
-------------
PR: https://git.openjdk.java.net/jdk/pull/1343
More information about the hotspot-runtime-dev
mailing list