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 a0b8466 commit fa01c11Copy full SHA for fa01c11
SwiftKitCore/src/main/java/org/swift/swiftkit/core/SwiftInstance.java
@@ -18,14 +18,9 @@
18
19
public abstract class SwiftInstance {
20
21
- /**
22
- * The designated constructor of any imported Swift types.
23
- *
24
- * @param arena the arena this object belongs to. When the arena goes out of scope, this value is destroyed.
25
- */
26
- protected SwiftInstance(SwiftArena arena) {
27
- arena.register(this);
28
- }
+ // TODO: make this a flagset integer and/or use a field updater
+ /** Used to track additional state of the underlying object, e.g. if it was explicitly destroyed. */
+ private final AtomicBoolean $state$destroyed = new AtomicBoolean(false);
29
30
/**
31
* Pointer to the {@code self} of the underlying Swift object or value.
0 commit comments