Mercurial > hg > graal-jvmci-8
diff src/share/vm/opto/parseHelper.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 | 6f3fd5150b67 |
children | b2ee5dc63353 |
line wrap: on
line diff
--- a/src/share/vm/opto/parseHelper.cpp Mon Oct 07 14:13:28 2013 +0400 +++ b/src/share/vm/opto/parseHelper.cpp Mon Oct 07 10:41:56 2013 -0700 @@ -343,10 +343,14 @@ // Get the Method* node. ciMethod* m = method(); - address counters_adr = m->ensure_method_counters(); + MethodCounters* counters_adr = m->ensure_method_counters(); + if (counters_adr == NULL) { + C->record_failure("method counters allocation failed"); + return; + } Node* ctrl = control(); - const TypePtr* adr_type = TypeRawPtr::make(counters_adr); + const TypePtr* adr_type = TypeRawPtr::make((address) counters_adr); Node *counters_node = makecon(adr_type); Node* adr_iic_node = basic_plus_adr(counters_node, counters_node, MethodCounters::interpreter_invocation_counter_offset_in_bytes());