You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to figure out how/if the JVM objects I create get dereferenced and available for garbage collection.
Was trying:
In [1]: import jnius
In [2]: jString = jnius.autoclass("java.lang.String")
In [8]: def abc():
...: x=jString("a" * (256 * 1024 * 1024))
...: # do something complex which creates a lot of big variables utilizing lots of RAM
If I call abc() multiple times, would the JVM automatically figure out that after function abc() finishes, all the Java objects created there can be garbage collected ?
I seem to be having memory issues and am trying to understand how memory management happens in the JVM with jnius
The text was updated successfully, but these errors were encountered:
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.
I'm trying to figure out how/if the JVM objects I create get dereferenced and available for garbage collection.
Was trying:
If I call
abc()
multiple times, would the JVM automatically figure out that after function abc() finishes, all the Java objects created there can be garbage collected ?I seem to be having memory issues and am trying to understand how memory management happens in the JVM with jnius
The text was updated successfully, but these errors were encountered: