As per the spec of
https://download.java.net/java/early_access/jdk19/docs/api/java.base/java/lang/foreign/SegmentAllocator.html#allocateArray(java.lang.foreign.ValueLayout.OfByte,byte...)
"Implementation Requirements:
the default implementation for this method calls this.allocateArray(layout, array.length)."
Expectations :
invoking SegmentAllocator:allocateArray(*) shall delegate a call to allocateArray(MemoryLayout elementLayout, long count)
Actual :
The method allocateArray(MemoryLayout elementLayout,
long count) not invoked