On Tue, Jan 22, 2013 at 06:26:51PM +0100, Holger Hans Peter Freyther wrote:

Hi,


> So long story short? What kind of allocator would you like to use for
> the JITed code and does a newer version of lightning already provide
> one?

today I had another look at it (mostly motivated by understanding why
the lightning tests/examples do work) and I found that on x86 the call
to jit_flush_code will use mprotect on the page.

Something like this makes me move to the next error:

diff --git a/libgst/xlat.c b/libgst/xlat.c
index e555cca..1fd0325 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_ip().ptr);
 }


_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to