[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] JIT issues and todolist
From: |
Holger Hans Peter Freyther |
Subject: |
[Help-smalltalk] JIT issues and todolist |
Date: |
Sun, 9 Jun 2013 21:18:00 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi all,
I will not have time for another couple of weeks for the JIT but just
in case someone is interested to continue or has some insight here is
a list of known issues:
1.) The Delay test is failing as the spOffset/sp of a context is -1.
This means that in some jitted code there is an unbalanced push/pop
in the stack.
2.) The maybe releasing of native code is failing with snapshot/resume
of the image. Passing an '-i' will 'fix' the segfault. The interesting
bit is that this happens _after_ the fixup must have set context
native_ip to 0. So I wonder if this could actually be the fix:
diff --git a/libgst/interp-jit.inl b/libgst/interp-jit.inl
index 0e8fa27..18dc40e 100644
--- a/libgst/interp-jit.inl
+++ b/libgst/interp-jit.inl
@@ -353,6 +353,7 @@ refresh_native_ips (OOP contextOOP)
virtualIP = TO_INT (context->ipOffset);
native_ip =
_gst_map_virtual_ip (context->method, receiverClass, virtualIP);
+ context->method->flags |= F_XLAT_REACHABLE;
#ifndef OPTIMIZE
if (!native_ip)
3.) The debug semaphore does not work, I think it should either set
the exception flag or the emit_interrupt_check should make a NULL test
for it. I am not sure how this is supposed to work yet.
4.) Porting to GNU lighting 1.9/2.0 would be nice. This way I could
have a JIT on ARM as well. I have had this wish/hope for quite some time
already but thanks to another Paulo GNU lightning can support that now.
cheers
holger
- [Help-smalltalk] JIT issues and todolist,
Holger Hans Peter Freyther <=