comparison src/share/vm/compiler/compileBroker.cpp @ 6940:18fb7da42534

8000725: NPG: method_holder() and pool_holder() and pool_holder field should be InstanceKlass Summary: Change types of above methods and field to InstanceKlass and remove unneeded casts from the source files. Reviewed-by: dholmes, coleenp, zgu Contributed-by: harold.seigel@oracle.com
author coleenp
date Tue, 06 Nov 2012 15:09:37 -0500
parents c3e799c37717
children e522a00b91aa 90273fc0a981
comparison
equal deleted inserted replaced
6939:c284cf4781f0 6940:18fb7da42534
1049 } 1049 }
1050 1050
1051 guarantee(!method->is_abstract(), "cannot compile abstract methods"); 1051 guarantee(!method->is_abstract(), "cannot compile abstract methods");
1052 assert(method->method_holder()->oop_is_instance(), 1052 assert(method->method_holder()->oop_is_instance(),
1053 "sanity check"); 1053 "sanity check");
1054 assert(!InstanceKlass::cast(method->method_holder())->is_not_initialized(), 1054 assert(!method->method_holder()->is_not_initialized(),
1055 "method holder must be initialized"); 1055 "method holder must be initialized");
1056 assert(!method->is_method_handle_intrinsic(), "do not enqueue these guys"); 1056 assert(!method->is_method_handle_intrinsic(), "do not enqueue these guys");
1057 1057
1058 if (CIPrintRequests) { 1058 if (CIPrintRequests) {
1059 tty->print("request: "); 1059 tty->print("request: ");
1204 const char* comment, Thread* THREAD) { 1204 const char* comment, Thread* THREAD) {
1205 // make sure arguments make sense 1205 // make sure arguments make sense
1206 assert(method->method_holder()->oop_is_instance(), "not an instance method"); 1206 assert(method->method_holder()->oop_is_instance(), "not an instance method");
1207 assert(osr_bci == InvocationEntryBci || (0 <= osr_bci && osr_bci < method->code_size()), "bci out of range"); 1207 assert(osr_bci == InvocationEntryBci || (0 <= osr_bci && osr_bci < method->code_size()), "bci out of range");
1208 assert(!method->is_abstract() && (osr_bci == InvocationEntryBci || !method->is_native()), "cannot compile abstract/native methods"); 1208 assert(!method->is_abstract() && (osr_bci == InvocationEntryBci || !method->is_native()), "cannot compile abstract/native methods");
1209 assert(!InstanceKlass::cast(method->method_holder())->is_not_initialized(), "method holder must be initialized"); 1209 assert(!method->method_holder()->is_not_initialized(), "method holder must be initialized");
1210 1210
1211 if (!TieredCompilation) { 1211 if (!TieredCompilation) {
1212 comp_level = CompLevel_highest_tier; 1212 comp_level = CompLevel_highest_tier;
1213 } 1213 }
1214 1214