Currently, raw lists are always unowned which introduces an undefined behavior even for Finalizable objects. If GC decides to dispose the Finalizable object and its raw lists are still being used, they might cause the application to crash. So the Finalizable version of a native object should return owned raw lists holding the reference to the native object. This will prevent the GC of reclamation.
Currently, raw lists are always unowned which introduces an undefined behavior even for Finalizable objects. If GC decides to dispose the Finalizable object and its raw lists are still being used, they might cause the application to crash. So the Finalizable version of a native object should return owned raw lists holding the reference to the native object. This will prevent the GC of reclamation.