Skip to content

Commit 53b84ba

Browse files
committed
TASK-214337 delay unblocking global trace during local gc
1 parent 7d07c5a commit 53b84ba

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/lgc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,15 +2097,15 @@ static int local_collection(lua_State *L, int type)
20972097

20982098
sanity_check_mark_status(L);
20992099

2100-
/* Now we can un-block the global collector, as we are done with our string
2101-
* tables and our heap. */
2102-
unblock_collector(L, pt);
2103-
21042100
/* Finalize deferred objects */
21052101
finalize_deferred(L);
21062102

21072103
validate_heap_objects(L, "local_collection:after_finalize");
21082104

2105+
/* Now we can un-block the global collector, as we are done with our string
2106+
* tables and our heap. */
2107+
unblock_collector(L, pt);
2108+
21092109
/* Free any objects that were white */
21102110
free_deferred_white(L);
21112111

0 commit comments

Comments
 (0)