Tehreer / Tehreer-Android

Standalone text engine for Android aimed to be free from platform limitations
Apache License 2.0
89 stars 16 forks source link

Owned primitive raw lists #6

Closed mta452 closed 6 years ago

mta452 commented 6 years ago

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.

mta452 commented 6 years ago

Resolved in v2.2