Arena/Segment allocator and zero initialized MemorySegment
Remi Forax
forax at univ-mlv.fr
Wed Jun 5 09:03:59 UTC 2024
Hello,
for one of my API, I want to take a SegmentAllocator as parameter, and this allocator whould provides zero initialized MemorySegment, but it seems there is no way to know if a SegmentAllocator or an Arena will intialize the MemorySegment with zeroes when allocate() is callled.
I believe what is missing is a default method isZeroInitialized() in SegmentAllocator that returns false by default and true for the 4 global(), ofAuto(), ofConfined() and ofShared() implementations.
regards,
Rémi
More information about the panama-dev
mailing list