[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] [PATCH 1/2] jit: Flush the code for the runtime directi
From: |
Holger Hans Peter Freyther |
Subject: |
[Help-smalltalk] [PATCH 1/2] jit: Flush the code for the runtime directives |
Date: |
Mon, 3 Jun 2013 09:38:52 +0200 |
From: Holger Hans Peter Freyther <address@hidden>
On x86/amd64 this will call mprotect with PROT_EXEC on the
allocated memory. This is fixing an infinite recursion in the
segfault handler of the garbage collection.
2013-06-03 Holger Hans Peter Freyther <address@hidden>
* xlat.c: Use jit_flush_code for the runtime code.
---
libgst/ChangeLog | 4 ++++
libgst/xlat.c | 2 ++
2 files changed, 6 insertions(+)
diff --git a/libgst/ChangeLog b/libgst/ChangeLog
index 040063b..031c3ea 100644
--- a/libgst/ChangeLog
+++ b/libgst/ChangeLog
@@ -1,3 +1,7 @@
+2013-06-03 Holger Hans Peter Freyther <address@hidden>
+
+ * xlat.c: Use jit_flush_code for the runtime code.
+
2013-05-18 Holger Hans Peter Freyther <address@hidden>
* libgst/byte.c: Define _gst_omit_line_numbers, emit line
diff --git a/libgst/xlat.c b/libgst/xlat.c
index e555cca..3f4a555 100644
--- a/libgst/xlat.c
+++ b/libgst/xlat.c
@@ -620,6 +620,8 @@ generate_run_time_code (void)
jit_movi_i (JIT_RET, 0);
jit_ret ();
+
+ jit_flush_code(_gst_run_native_code, jit_get_label() );
}
--
1.7.10.4
- [Help-smalltalk] [PATCH 1/2] jit: Flush the code for the runtime directives,
Holger Hans Peter Freyther <=