7170053: crash in C2 when using -XX:+CountCompiledCalls

Fri, 18 May 2012 12:20:24 -0700

author
twisti
date
Fri, 18 May 2012 12:20:24 -0700
changeset 3789
cdd249497b34
parent 3788
4073d9478a90
child 3790
e2961d14584b

7170053: crash in C2 when using -XX:+CountCompiledCalls
Reviewed-by: kvn, twisti
Contributed-by: Krystal Mok <sajia@taobao.com>

src/share/vm/opto/doCall.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/opto/doCall.cpp	Fri May 18 15:50:09 2012 +0200
     1.2 +++ b/src/share/vm/opto/doCall.cpp	Fri May 18 12:20:24 2012 -0700
     1.3 @@ -780,7 +780,7 @@
     1.4      if( at_method_entry ) {
     1.5        // bump invocation counter if top method (for statistics)
     1.6        if (CountCompiledCalls && depth() == 1) {
     1.7 -        const TypeInstPtr* addr_type = TypeInstPtr::make(method());
     1.8 +        const TypeOopPtr* addr_type = TypeOopPtr::make_from_constant(method());
     1.9          Node* adr1 = makecon(addr_type);
    1.10          Node* adr2 = basic_plus_adr(adr1, adr1, in_bytes(methodOopDesc::compiled_invocation_counter_offset()));
    1.11          increment_counter(adr2);

mercurial