mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8062116: JVMTI GetClassMethods is Slow
Allocate enough space for all jmethodids; make adding a jmethodid O(1) Reviewed-by: coleenp, rasbold, sspitsyn
This commit is contained in:
parent
75778598e2
commit
54e9fee4d2
5 changed files with 166 additions and 44 deletions
|
@ -698,6 +698,7 @@ class InstanceKlass: public Klass {
|
|||
jmethodID** to_dealloc_jmeths_p);
|
||||
static void get_jmethod_id_length_value(jmethodID* cache, size_t idnum,
|
||||
size_t *length_p, jmethodID* id_p);
|
||||
void ensure_space_for_methodids(int start_offset = 0);
|
||||
jmethodID jmethod_id_or_null(Method* method);
|
||||
|
||||
// annotations support
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue