Mercurial > hg > graal-jvmci-8
comparison src/share/vm/jvmci/jvmciRuntime.cpp @ 22609:c42b12eb270a
trivial prefixes shoudl only apply to the compiler itself
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Wed, 23 Sep 2015 19:31:54 -0700 |
parents | d3930fdd1eb3 |
children | 0851eafff5c9 |
comparison
equal
deleted
inserted
replaced
22608:3395128f3aef | 22609:c42b12eb270a |
---|---|
999 } | 999 } |
1000 } | 1000 } |
1001 | 1001 |
1002 bool JVMCIRuntime::treat_as_trivial(Method* method) { | 1002 bool JVMCIRuntime::treat_as_trivial(Method* method) { |
1003 if (_HotSpotJVMCIRuntime_initialized) { | 1003 if (_HotSpotJVMCIRuntime_initialized) { |
1004 for (int i = 0; i < _trivial_prefixes_count; i++) { | 1004 oop loader = method->method_holder()->class_loader(); |
1005 if (method->method_holder()->name()->starts_with(_trivial_prefixes[i])) { | 1005 if (loader == NULL || loader == SystemDictionary::jvmci_loader()) { |
1006 return true; | 1006 for (int i = 0; i < _trivial_prefixes_count; i++) { |
1007 if (method->method_holder()->name()->starts_with(_trivial_prefixes[i])) { | |
1008 return true; | |
1009 } | |
1007 } | 1010 } |
1008 } | 1011 } |
1009 } | 1012 } |
1010 return false; | 1013 return false; |
1011 } | 1014 } |