[Top][All Lists]

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

Re: [Help-smalltalk] JIT crashes due non-executable memory

From: Holger Hans Peter Freyther
Subject: Re: [Help-smalltalk] JIT crashes due non-executable memory
Date: Sun, 2 Jun 2013 14:01:32 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

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


> 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);

reply via email to

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