mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8014288: perf regression in nashorn JDK-8008448.js test after 8008511 changes
The fix of perf regression is to use method_idnum() for direct indexing into NMT Reviewed-by: twisti, kvn, coleenp, dholmes
This commit is contained in:
parent
bd53fa8370
commit
b2e43ed612
4 changed files with 35 additions and 32 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -219,7 +219,6 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// MethodHandlesAdapterGenerator
|
||||
//
|
||||
|
@ -233,13 +232,13 @@ public:
|
|||
//------------------------------------------------------------------------------
|
||||
// MemberNameTable
|
||||
//
|
||||
|
||||
class MemberNameTable : public GrowableArray<jweak> {
|
||||
public:
|
||||
MemberNameTable();
|
||||
MemberNameTable(int methods_cnt);
|
||||
~MemberNameTable();
|
||||
void add_member_name(jweak mem_name_ref);
|
||||
private:
|
||||
int find_member_name(oop mem_name);
|
||||
void add_member_name(int index, jweak mem_name_ref);
|
||||
oop get_member_name(int index);
|
||||
|
||||
#if INCLUDE_JVMTI
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue