Zeroing of allocated segments

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Mon Jan 8 10:34:58 UTC 2024


Hi Daniel,
you are correct - the Arena javadoc should say something about this 
(whereas the javadoc for SegmentAllocator shouldn't as that can be more 
flexible).

I filed this:

https://bugs.openjdk.org/browse/JDK-8323159

Maurizio

On 02/01/2024 05:48, Daniel Jarabek wrote:
> Hi,
>
> I am wondering what the specified zeroing behavior of Arena#allocate 
> is. The current implementation zeros the allocated memory, but I can't 
> find anything in the javadoc that indicates any guarantees related to 
> this behavior. Is there a reason no mention of zeroing is made, even 
> for the built in Arenas?
>
> Thanks,
> -DJ


More information about the panama-dev mailing list