help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] [PATCH 1/4] jit: Flush the code for the runtime directi


From: Holger Hans Peter Freyther
Subject: [Help-smalltalk] [PATCH 1/4] jit: Flush the code for the runtime directives
Date: Thu, 27 Jun 2013 10:12:21 +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 f5a77d7..56a044f 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-06-14  Gwenael Casaccio <address@hidden>
 
        * libgst/dict.c: Remove useless code: gst_ordered_collection structure.
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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]