summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 1b8b5483aa..9535205fb2 100644
--- a/vm.c
+++ b/vm.c
@@ -2660,6 +2660,8 @@ thread_compact(void *ptr)
{
rb_thread_t *th = ptr;
+ th->self = rb_gc_location(th->self);
+
if (!th->root_fiber) {
rb_execution_context_update(th->ec);
}