|
From: Johannes S. <js...@po...> - 2020-01-10 10:00:23
|
Hey there, in a current project of mine, I'm trying to separate a few objects in the heap, so the garbage collection doesn't check them. This is done by using the implementation of a ImmortalSpace and give it a ring buffer fashioned memory management. In this way objects are not necessarily live (after a new ring buffer cycle has started). Unfortunately in the "full heap" collection phase, it seems to me, that the GC checks for static references independent of the used heap space. This causes the VM to crash, since objects can be overwritten and an address of a previous object can't be resolved anymore. Is there a way to separate the space more, so the GC is not led into it? I couldn't find a solution yet. Thanks and kind regards, Johannes |