Garbage collection of HostObjects #1662
Closed
alielmorsy
started this conversation in
General
Replies: 1 comment 7 replies
-
|
Hi @alielmorsy, we've addressed similar issues in the past (e.g. #982), but we'd need a lot more information to have a sense of what might be happening.
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m exploring the world of Hermes with JSI, and I came across something a bit strange. I’m not sure if I did something wrong, but I’ve been debugging for hours and haven’t found anything.
The issue is that the host object may persist for the entire session until the runtime is destroyed. I tried tweaking the runtime GC configuration, but nothing worked.
Is there a way to avoid this issue (besides manually calling gc, of course)?
I discovered this because the host object holds a shared pointer to one of my internal structures, which I need to be destructed periodically to free up memory.
Beta Was this translation helpful? Give feedback.
All reactions