import java.lang.foreign.MemorySegment;
import java.lang.foreign.ValueLayout;

public class Test {
    private static MemorySegment ms = MemorySegment.ofArray(new byte[80000]);
    private static final ValueLayout.OfByte BYTE = ValueLayout.JAVA_BYTE;
    static byte[] bArr = new byte[80000];
        
    public static void main(String[] args) {
        for (int i = 0; i < 10000; i++) {
            test(i);
        }
    }

    public static void test(int start) {
        int end = start + 100;
        int i = 0;
        while (start < end) {
            bArr[i++] = ms.get(BYTE, start++);
        }
    }
}
