RFR: 8371643: Remove ThreadLocalAllocBuffer::_reserve_for_allocation_prefetch

Albert Mingkun Yang ayang at openjdk.org
Tue Nov 11 17:50:44 UTC 2025


On Tue, 11 Nov 2025 16:16:25 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

> What happens if TLAB is at the end of heap page? Are you sure "prefetch" instructions on all OpenJDK platforms can touch unmapped memory? I see PPC can use AllocatePrefetchStyle == 3.

In every `<arch>.ad` file, there is `// Must be safe to execute with invalid address (cannot fault)` for prefetching.

I searched online that all currently supported platforms don't fault on prefetching invalid addresses.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/28240#issuecomment-3518048288


More information about the hotspot-dev mailing list