Skip to content

Instantly share code, notes, and snippets.

@joshthecoder
Created August 22, 2012 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshthecoder/0bcc06581e4c57039654 to your computer and use it in GitHub Desktop.
Save joshthecoder/0bcc06581e4c57039654 to your computer and use it in GitHub Desktop.
{Window} ---property---> {childView}
^ ^
| |
|_ _ Weak Persistent handles _ _|
This group is not reachable from the GC root in V8.
So both object's weak callbacks will be called. Since the
window is not open, the childView will get collected since it has
no retainer in Java. Window will be okay since the Java side retains it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment