8151723: [JVMCI] JVMCIRuntime::treat_as_trivial: Don't limit trivial prefixes to boot class path

Reviewed-by: dnsimon
This commit is contained in:
Christian Thalinger 2016-03-17 16:10:09 -10:00
parent 99a06be405
commit 565799b797

View file

@ -800,12 +800,9 @@ void JVMCIRuntime::shutdown(TRAPS) {
bool JVMCIRuntime::treat_as_trivial(Method* method) {
if (_HotSpotJVMCIRuntime_initialized) {
oop loader = method->method_holder()->class_loader();
if (loader == NULL) {
for (int i = 0; i < _trivial_prefixes_count; i++) {
if (method->method_holder()->name()->starts_with(_trivial_prefixes[i])) {
return true;
}
for (int i = 0; i < _trivial_prefixes_count; i++) {
if (method->method_holder()->name()->starts_with(_trivial_prefixes[i])) {
return true;
}
}
}