The wrong variable name was used in a conditional block, leading to invalid memory reads and potential bugs.
Signed-off-by: Arthur HUILLET <[email protected]> --- jit/linear-scan.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jit/linear-scan.c b/jit/linear-scan.c index 27bf271..23dc38b 100644 --- a/jit/linear-scan.c +++ b/jit/linear-scan.c @@ -226,14 +226,14 @@ static void allocate_blocked_reg(struct live_interval *current, } reg = pick_register(use_pos); - if (use_pos[reg] < next_use_pos(it, 0)) { + if (use_pos[reg] < next_use_pos(current, 0)) { unsigned long pos; /* * All active and inactive intervals are used before current, * so it is best to spill current itself */ - pos = next_use_pos(it, current->range.start); + pos = next_use_pos(current, current->range.start); new = split_interval_at(current, pos); mark_need_reload(new, current); insert_to_list(new, unhandled); -- 1.6.2.2 ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Jatovm-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jatovm-devel
