Piasy
07/12/2020, 12:12 PMfreezeSubgraph
function of Memory.cpp
:
#if USE_GC
// Now remove frozen objects from the toFree list.
// TODO: optimize it by keeping ignored (i.e. freshly frozen) objects in the set,
// and use it when analyzing toFree during collection.
auto state = memoryState;
for (auto& container : *(state->toFree)) {
if (!isMarkedAsRemoved(container) && container->frozen()) {
RuntimeAssert(newlyFrozen.count(container) != 0, "Must be newly frozen"); // <=== here
container = markAsRemoved(container);
}
}
#endif
The abort seems happen randomly, I really don't know what's wrong with my code.
I tried to comment this line, it seems work fine, I'd like to know what's the possible problem if this condition is false? Would there be other problem if I comment this code?
Thank you! I really need your help, genius at JB!Artyom Degtyarev [JB]
07/30/2020, 12:42 PMPiasy
07/31/2020, 12:10 AMdocs/kn_freeze_abort_debug.md
for setup guide. Thank you so much!
BTW, actually I provided this project to @kpgalligan months ago, he could reproduce it in this project at his side too.Piasy
08/06/2020, 2:27 PMsvyatoslav.scherbina
08/07/2020, 8:16 AMsvyatoslav.scherbina
08/07/2020, 12:08 PMPiasy
08/07/2020, 12:09 PMsvyatoslav.scherbina
08/07/2020, 3:04 PMPiasy
08/08/2020, 12:01 AM