mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
6d818b7095
+ Changed the way JS wrapper functions for Java instance methods are constructed. Previously, these were computed the first time that an instance method was accessed for a particular JavaObject and cached in the native, private portion of that JavaObject. However, the required call to JS_AddRoot() causes an root to appear as a link in a cyclical graph, leading to uncollectible objects, i.e. the JavaObject has a root pointer to the function object and the function has a parent that points back to the JavaObject. Now, we compute the functions at the time a class is reflected and use JS_CloneFunctionObject() each time a JS wrapper function is needed, which is slower, but avoids this GC problem. |
||
---|---|---|
.. | ||
jsd | ||
jsj | ||
macbuild | ||
ref | ||
src | ||
Makefile | ||
makefile.win |