Skip to content

Commit 941ee73

Browse files
committed
Don't set saved_ec.tag to NULL in cont_init()
1 parent fac72be commit 941ee73

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

libretro/ruby-setjmp.patch

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
# One of them causes the stack pointer to get corrupted after a longjmp.
33
# The other one causes VM jump buffers being leaked after a longjmp.
44

5-
--- a/cont.c
6-
+++ b/cont.c
7-
@@ -1360,6 +1360,7 @@ cont_init(rb_context_t *cont, rb_thread_t *th)
8-
/* save thread context */
9-
cont_save_thread(cont, th);
10-
cont->saved_ec.thread_ptr = th;
11-
+ cont->saved_ec.tag = NULL;
12-
cont->saved_ec.local_storage = NULL;
13-
cont->saved_ec.local_storage_recursive_hash = Qnil;
14-
cont->saved_ec.local_storage_recursive_hash_for_trace = Qnil;
155
--- a/eval_intern.h
166
+++ b/eval_intern.h
177
@@ -110,11 +110,11 @@ extern int select_large_fdset(int, fd_set *, fd_set *, fd_set *, struct timeval

0 commit comments

Comments
 (0)