to restart on a new cache page (minor alterations by Rhys).
+2004-11-02 Evin Robertson <evin@users.sourceforge.net>
+
+ * jit/jit-function.c (jit_function_compile): clear block addresses
+ and fixup lists if we need to restart on a new cache page (minor
+ alterations by Rhys).
+
2004-10-31 Rhys Weatherley <rweather@southern-storm.com.au>
* jit/jit-rules-x86.sel: handle the special case of constant
/* End the function's output process */
result = _jit_cache_end_method(&(gen.posn));
+
+ /* If we need to restart on a different cache page, then clear
+ the block addresses and fixup lists */
+ if(result == JIT_CACHE_END_RESTART)
+ {
+ block = 0;
+ while((block = jit_block_next(func, block)) != 0)
+ {
+ block->address = 0;
+ block->fixup_list = 0;
+ }
+ }
+
}
while(result == JIT_CACHE_END_RESTART);