Breaks circular reference in the AndroidUIScheduler.
AndroidUIScheduler is a HybridClass that has a C++ counterpart holding a global reference to the Java object. This structure creates a circular reference between C++ and Java, which the garbage collector cannot clean up. To resolve this issue, I manually remove the reference between Java and C++ by calling resetNative when the scheduler is deactivated.
Summary
Breaks circular reference in the
AndroidUIScheduler
.AndroidUIScheduler
is aHybridClass
that has a C++ counterpart holding a global reference to the Java object. This structure creates a circular reference between C++ and Java, which the garbage collector cannot clean up. To resolve this issue, I manually remove the reference between Java and C++ by callingresetNative
when the scheduler is deactivated.Test plan