equal
deleted
inserted
replaced
54 class ResolvedMethodTable : public Hashtable<ClassLoaderWeakHandle, mtClass> { |
54 class ResolvedMethodTable : public Hashtable<ClassLoaderWeakHandle, mtClass> { |
55 enum Constants { |
55 enum Constants { |
56 _table_size = 1007 |
56 _table_size = 1007 |
57 }; |
57 }; |
58 |
58 |
59 static int _oops_removed; |
59 static int _total_oops_removed; |
60 static int _oops_counted; |
|
61 |
60 |
62 static bool _dead_entries; |
61 static bool _dead_entries; |
63 |
62 |
64 static ResolvedMethodTable* _the_table; |
63 static ResolvedMethodTable* _the_table; |
65 private: |
64 private: |
93 static oop add_method(Handle rmethod_name); |
92 static oop add_method(Handle rmethod_name); |
94 |
93 |
95 static bool has_work() { return _dead_entries; } |
94 static bool has_work() { return _dead_entries; } |
96 static void trigger_cleanup(); |
95 static void trigger_cleanup(); |
97 |
96 |
|
97 static int removed_entries_count() { return _total_oops_removed; }; |
|
98 |
98 #if INCLUDE_JVMTI |
99 #if INCLUDE_JVMTI |
99 // It is called at safepoint only for RedefineClasses |
100 // It is called at safepoint only for RedefineClasses |
100 static void adjust_method_entries(bool * trace_name_printed); |
101 static void adjust_method_entries(bool * trace_name_printed); |
101 #endif // INCLUDE_JVMTI |
102 #endif // INCLUDE_JVMTI |
102 |
103 |