fix PPC instruct-cache flush to not walk past the end of an allocated page

svn: r11973
This commit is contained in:
Matthew Flatt 2008-10-08 15:12:44 +00:00
parent 4609f594b6
commit aedc028b2c
2 changed files with 2 additions and 3 deletions

View File

@ -48,8 +48,7 @@
# define _CALL_DARWIN
#endif
/* Separate JIT_PRECISE_GC lets us test some 3m support
in non-3m mode: */
/* Separate JIT_PRECISE_GC lets us test some 3m support in non-3m mode: */
#ifdef MZ_PRECISE_GC
# define JIT_PRECISE_GC
#endif

View File

@ -71,7 +71,7 @@ jit_flush_code(void *start, void *end)
}
start -= ((long) start) & (cache_line_size - 1);
end -= ((long) end) & (cache_line_size - 1);
end -= ((long) end - sizeof(long)) & (cache_line_size - 1);
/* Force data cache write-backs */
for (ddest = (char *) start; ddest <= (char *) end; ddest += cache_line_size) {