MobiVM / robovm

Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
https://mobivm.github.io
967 stars 133 forks source link

* fixed: TimeoutException $classname.finalize() timed out after 10 seconds #643

Closed dkimitsa closed 2 years ago

dkimitsa commented 2 years ago

Rootcase:

on minimize iOS will put application to background and suspend all threads. if background time is longer than MAX_FINALIZE_NANOS and watchdog was waiting on object -- sleep will exit before finalizer and will cause $classname.finalize() timed out after 10 seconds

Workaround:

split wait interval into two. This will allow to survive this case