mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8151723: [JVMCI] JVMCIRuntime::treat_as_trivial: Don't limit trivial prefixes to boot class path
Reviewed-by: dnsimon
This commit is contained in:
parent
99a06be405
commit
565799b797
1 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue