We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4034f1 commit 7cb648eCopy full SHA for 7cb648e
1 file changed
core/shared/mem-alloc/ems/ems_gc.c
@@ -308,8 +308,12 @@ reclaim_instance_heap(gc_heap_t *heap)
308
return GC_SUCCESS;
309
ret = gct_vm_begin_rootset_enumeration(heap->cluster, heap);
310
#endif
311
- if (!ret)
+ if (!ret) {
312
+ if (heap->root_set) {
313
+ rollback_mark(heap);
314
+ }
315
return GC_ERROR;
316
317
318
#if BH_ENABLE_GC_VERIFY != 0
319
/* no matter whether the enumeration is successful or not, the data
0 commit comments