Skip to content

Commit 5c585e8

Browse files
committed
SwiftArena is now a segment allocator
1 parent 7d4b57b commit 5c585e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SwiftKit/src/main/java/org/swift/swiftkit/SwiftArena.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
package org.swift.swiftkit;
1616

17+
import java.lang.foreign.SegmentAllocator;
1718
import java.util.concurrent.ThreadFactory;
1819

1920
/**
@@ -23,7 +24,7 @@
2324
* <p> A confined arena has an associated owner thread that confines some operations to
2425
* associated owner thread such as {@link ClosableSwiftArena#close()}.
2526
*/
26-
public interface SwiftArena {
27+
public interface SwiftArena extends SegmentAllocator {
2728

2829
static ClosableSwiftArena ofConfined() {
2930
return new ConfinedSwiftMemorySession(Thread.currentThread());
@@ -65,4 +66,3 @@ public UnexpectedRetainCountException(Object resource, long retainCount, int exp
6566
).formatted(resource, expectedRetainCount, retainCount));
6667
}
6768
}
68-

0 commit comments

Comments
 (0)