Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/simpleThresholdPolicy.inline.hpp @ 22575:569c82ebb96e
Replace JVMCICompileWithC1Only with package based controls
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 17 Sep 2015 18:25:08 -0700 |
parents | be896a1983c0 |
children | 3ef45d0a6d77 |
line wrap: on
line diff
--- a/src/share/vm/runtime/simpleThresholdPolicy.inline.hpp Thu Sep 17 12:58:40 2015 -0700 +++ b/src/share/vm/runtime/simpleThresholdPolicy.inline.hpp Thu Sep 17 18:25:08 2015 -0700 @@ -59,9 +59,8 @@ return true; } #ifdef COMPILERJVMCI - if (TieredCompilation && JVMCICompileWithC1Only && - SystemDictionary::jvmci_loader() != NULL && - method->method_holder()->class_loader() == SystemDictionary::jvmci_loader()) { + if (TieredCompilation && CompileBroker::compiler(CompLevel_full_optimization) != NULL && + CompileBroker::compiler(CompLevel_full_optimization)->is_trivial(method)) { return true; } #endif