Get rid of fiber for finalizers.
Instead, finalizers just get access to the foreign object's raw bytes. This is deliberately limiting, since it discourages the user from interacting with the VM in the middle of a GC.
This commit is contained in:
+1
-1
@@ -208,7 +208,7 @@ WrenForeignClassMethods bindBuiltInForeignClass(
|
||||
if (clas == NULL) return methods;
|
||||
|
||||
methods.allocate = findMethod(clas, true, "<allocate>");
|
||||
methods.finalize = findMethod(clas, true, "<finalize>");
|
||||
methods.finalize = (WrenFinalizerFn)findMethod(clas, true, "<finalize>");
|
||||
|
||||
return methods;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user