We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4092f36 commit 4dffc5fCopy full SHA for 4dffc5f
SwiftKitFFM/src/main/java/org/swift/swiftkit/ffm/FFMSwiftInstance.java
@@ -29,8 +29,10 @@ public abstract class FFMSwiftInstance extends SwiftInstance {
29
* @param arena the arena this object belongs to. When the arena goes out of scope, this value is destroyed.
30
*/
31
protected FFMSwiftInstance(MemorySegment segment, AllocatingSwiftArena arena) {
32
- super(arena);
33
this.memorySegment = segment;
+
34
+ // Only register once we have fully initialized the object since this will need the object pointer.
35
+ arena.register(this);
36
}
37
38
/**
0 commit comments