Mercurial > hg > graal-compiler
comparison src/share/vm/c1/c1_LIRGenerator.cpp @ 12868:c775af091fe9
8025566: EXCEPTION_ACCESS_VIOLATION in compiled by C1 String.valueOf method
Reviewed-by: kvn
author | twisti |
---|---|
date | Mon, 07 Oct 2013 10:41:56 -0700 |
parents | 8d77d02828d9 |
children | d13d7aba8c12 |
comparison
equal
deleted
inserted
replaced
12867:5741fc86a2ee | 12868:c775af091fe9 |
---|---|
3051 assert(level > CompLevel_simple, "Shouldn't be here"); | 3051 assert(level > CompLevel_simple, "Shouldn't be here"); |
3052 | 3052 |
3053 int offset = -1; | 3053 int offset = -1; |
3054 LIR_Opr counter_holder; | 3054 LIR_Opr counter_holder; |
3055 if (level == CompLevel_limited_profile) { | 3055 if (level == CompLevel_limited_profile) { |
3056 address counters_adr = method->ensure_method_counters(); | 3056 MethodCounters* counters_adr = method->ensure_method_counters(); |
3057 if (counters_adr == NULL) { | |
3058 bailout("method counters allocation failed"); | |
3059 return; | |
3060 } | |
3057 counter_holder = new_pointer_register(); | 3061 counter_holder = new_pointer_register(); |
3058 __ move(LIR_OprFact::intptrConst(counters_adr), counter_holder); | 3062 __ move(LIR_OprFact::intptrConst(counters_adr), counter_holder); |
3059 offset = in_bytes(backedge ? MethodCounters::backedge_counter_offset() : | 3063 offset = in_bytes(backedge ? MethodCounters::backedge_counter_offset() : |
3060 MethodCounters::invocation_counter_offset()); | 3064 MethodCounters::invocation_counter_offset()); |
3061 } else if (level == CompLevel_full_profile) { | 3065 } else if (level == CompLevel_full_profile) { |