changeset 10505:59db3de117b0

8151723: [JVMCI] JVMCIRuntime::treat_as_trivial: Don't limit trivial prefixes to boot class path Reviewed-by: dnsimon
author twisti
date Thu, 17 Mar 2016 16:10:09 -1000
parents 48d325e55fb4
children ebbd1e270795
files src/share/vm/jvmci/jvmciRuntime.cpp
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciRuntime.cpp	Thu Mar 17 10:55:15 2016 -1000
+++ b/src/share/vm/jvmci/jvmciRuntime.cpp	Thu Mar 17 16:10:09 2016 -1000
@@ -800,12 +800,9 @@
 
 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;
       }
     }
   }