summaryrefslogtreecommitdiff
path: root/dist/threads
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-12-06 09:04:49 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2014-12-06 14:30:55 -0500
commit0c87ebb84f6823273645a50b13edb9a188c7e41c (patch)
tree2d63dc0060432e96278ed8d5733abb89a9b964b6 /dist/threads
parent3f39ca90d441ea8c46643321eda2a33ab51d0246 (diff)
downloadperl-0c87ebb84f6823273645a50b13edb9a188c7e41c.tar.gz
Variables possibly clobbered by longjmp/vfork.
(my_perl in the line 480 has the same problem, but messier to fix.)
Diffstat (limited to 'dist/threads')
-rw-r--r--dist/threads/threads.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/threads/threads.xs b/dist/threads/threads.xs
index 5b44a38ef0..3bbca6580e 100644
--- a/dist/threads/threads.xs
+++ b/dist/threads/threads.xs
@@ -470,10 +470,10 @@ S_ithread_run(void * arg)
{
ithread *thread = (ithread *)arg;
int jmp_rc = 0;
- I32 oldscope;
+ volatile I32 oldscope;
volatile int exit_app = 0; /* Thread terminated using 'exit' */
volatile int exit_code = 0;
- int died = 0; /* Thread terminated abnormally */
+ volatile int died = 0; /* Thread terminated abnormally */
dJMPENV;