summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
Diffstat (limited to 'dist')
-rw-r--r--dist/threads/threads.xs3
1 files changed, 3 insertions, 0 deletions
diff --git a/dist/threads/threads.xs b/dist/threads/threads.xs
index 069f0da3ca..25fec167aa 100644
--- a/dist/threads/threads.xs
+++ b/dist/threads/threads.xs
@@ -205,6 +205,9 @@ S_ithread_set(pTHX_ ithread *thread)
{
dMY_CXT;
MY_CXT.context = thread;
+#ifdef PERL_SET_NON_tTHX_CONTEXT
+ PERL_SET_NON_tTHX_CONTEXT(thread->interp);
+#endif
}
STATIC ithread *