diff options
author | Steve Wills <swills@FreeBSD.org> | 2016-12-07 12:47:30 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2016-12-07 12:47:30 +0000 |
commit | 33ba518bad0a8d7836ba0d2c3c258ec4be519970 (patch) | |
tree | d9a90850d0125875f654045ee3ee9b78ab1e0556 /lang/ruby22/files/patch-thread.c | |
parent | Update to the 20161206 snapshot of GCC 5.4.1. (diff) |
lang/ruby22: fix setjmp clobbered variables
PR: 206110
Submitted by: dim
Diffstat (limited to 'lang/ruby22/files/patch-thread.c')
-rw-r--r-- | lang/ruby22/files/patch-thread.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/ruby22/files/patch-thread.c b/lang/ruby22/files/patch-thread.c new file mode 100644 index 000000000000..992da4cd8608 --- /dev/null +++ b/lang/ruby22/files/patch-thread.c @@ -0,0 +1,13 @@ +--- thread.c.orig 2015-02-20 14:53:23.000000000 +0100 ++++ thread.c 2016-01-10 19:11:32.423524000 +0100 +@@ -462,8 +462,8 @@ rb_threadptr_unlock_all_locking_mutexes( + void + rb_thread_terminate_all(void) + { +- rb_thread_t *th = GET_THREAD(); /* main thread */ +- rb_vm_t *vm = th->vm; ++ rb_thread_t *volatile th = GET_THREAD(); /* main thread */ ++ rb_vm_t *volatile vm = th->vm; + + if (vm->main_thread != th) { + rb_bug("rb_thread_terminate_all: called by child thread (%p, %p)", |