mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 05:45:11 +02:00
8000725: NPG: method_holder() and pool_holder() and pool_holder field should be InstanceKlass
Change types of above methods and field to InstanceKlass and remove unneeded casts from the source files. Reviewed-by: dholmes, coleenp, zgu
This commit is contained in:
parent
e1d995ab86
commit
7fee66f152
39 changed files with 176 additions and 179 deletions
|
@ -67,7 +67,7 @@ class MethodMatcher : public CHeapObj<mtCompiler> {
|
|||
|
||||
// utility method
|
||||
MethodMatcher* find(methodHandle method) {
|
||||
Symbol* class_name = Klass::cast(method->method_holder())->name();
|
||||
Symbol* class_name = method->method_holder()->name();
|
||||
Symbol* method_name = method->name();
|
||||
for (MethodMatcher* current = this; current != NULL; current = current->_next) {
|
||||
if (match(class_name, current->class_name(), current->_class_mode) &&
|
||||
|
@ -624,7 +624,7 @@ void CompilerOracle::append_exclude_to_file(methodHandle method) {
|
|||
assert(has_command_file(), "command file must be specified");
|
||||
fileStream stream(fopen(cc_file(), "at"));
|
||||
stream.print("exclude ");
|
||||
Klass::cast(method->method_holder())->name()->print_symbol_on(&stream);
|
||||
method->method_holder()->name()->print_symbol_on(&stream);
|
||||
stream.print(".");
|
||||
method->name()->print_symbol_on(&stream);
|
||||
method->signature()->print_symbol_on(&stream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue