mer-hybris / libgbinder

GLib-style interface to binder
BSD 3-Clause "New" or "Revised" License
50 stars 42 forks source link

Drop remote refs and shutdown loopers on unload #39

Closed monich closed 4 years ago

monich commented 4 years ago

That prevents crashes when libgbinder.so is being unloaded. Which went unnoticed because it typically happens when process exits anyway.

Remote references were preventing libgbinder's internal objects from being deallocated on unload, which was leaving looper threads running and trying to execute code already unmapped from the address space.