comparison src/share/vm/jvmci/jvmciRuntime.cpp @ 24140:d4858e92c9b1

[GR-4077] support Graal.SDK on the boot class path and Truffle on a class path invisible to apps but visible to JVMCI
author Doug Simon <doug.simon@oracle.com>
date Tue, 13 Jun 2017 14:22:54 +0200
parents a81ca24b52bc
children 190f5f33b7d3
comparison
equal deleted inserted replaced
24139:0c5304ad61bd 24140:d4858e92c9b1
847 } 847 }
848 848
849 bool JVMCIRuntime::treat_as_trivial(Method* method) { 849 bool JVMCIRuntime::treat_as_trivial(Method* method) {
850 if (_HotSpotJVMCIRuntime_initialized) { 850 if (_HotSpotJVMCIRuntime_initialized) {
851 oop loader = method->method_holder()->class_loader(); 851 oop loader = method->method_holder()->class_loader();
852 if (loader == NULL || loader == SystemDictionary::jvmci_loader()) { 852 if (SystemDictionary::in_jvmci_loader_hierarchy(loader)) {
853 for (int i = 0; i < _trivial_prefixes_count; i++) { 853 for (int i = 0; i < _trivial_prefixes_count; i++) {
854 if (method->method_holder()->name()->starts_with(_trivial_prefixes[i])) { 854 if (method->method_holder()->name()->starts_with(_trivial_prefixes[i])) {
855 return true; 855 return true;
856 } 856 }
857 } 857 }