mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
7170053: crash in C2 when using -XX:+CountCompiledCalls
Reviewed-by: kvn, twisti
This commit is contained in:
parent
285f7e0640
commit
100eb2036d
1 changed files with 1 additions and 1 deletions
|
@ -780,7 +780,7 @@ void Parse::count_compiled_calls(bool at_method_entry, bool is_inline) {
|
|||
if( at_method_entry ) {
|
||||
// bump invocation counter if top method (for statistics)
|
||||
if (CountCompiledCalls && depth() == 1) {
|
||||
const TypeInstPtr* addr_type = TypeInstPtr::make(method());
|
||||
const TypeOopPtr* addr_type = TypeOopPtr::make_from_constant(method());
|
||||
Node* adr1 = makecon(addr_type);
|
||||
Node* adr2 = basic_plus_adr(adr1, adr1, in_bytes(methodOopDesc::compiled_invocation_counter_offset()));
|
||||
increment_counter(adr2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue