From eb68fc73c4f61af6c6e1541628303b8d72ab81d0 Mon Sep 17 00:00:00 2001 From: Alexander Astapchuk Date: Wed, 7 Feb 2007 10:23:07 +0600 Subject: [PATCH] [drlvm][jet].jet does not insert GC safepoints into some endless loops --- vm/jitrino/src/jet/cg_br.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vm/jitrino/src/jet/cg_br.cpp b/vm/jitrino/src/jet/cg_br.cpp index 7649de7..e552fea 100644 --- a/vm/jitrino/src/jet/cg_br.cpp +++ b/vm/jitrino/src/jet/cg_br.cpp @@ -95,7 +95,7 @@ static COND flip(COND cond) void Compiler::gen_goto(unsigned target) { gen_bb_leave(target); - if (target < m_pc) { + if (target <= m_pc) { // Back branch gen_prof_be(); gen_gc_safe_point(); @@ -105,7 +105,7 @@ void Compiler::gen_goto(unsigned target) void Compiler::gen_if(JavaByteCodes opcod, unsigned target) { - if (target < m_pc) { + if (target <= m_pc) { // have back branch here gen_prof_be(); gen_gc_safe_point(); @@ -149,7 +149,7 @@ void Compiler::gen_if(JavaByteCodes opco void Compiler::gen_if_icmp(JavaByteCodes opcod, unsigned target) { - if (target < m_pc) { + if (target <= m_pc) { // have back branch here gen_prof_be(); gen_gc_safe_point(); -- 1.4.4