Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/simpleThresholdPolicy.inline.hpp @ 19945:f2bdbfe9201b
Experimentally disallow Graal compiling itself in tiered
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 17 Mar 2015 19:21:57 -0700 |
parents | da91efe96a93 |
children | 7848fc12602b |
line wrap: on
line diff
--- a/src/share/vm/runtime/simpleThresholdPolicy.inline.hpp Tue Mar 17 19:21:54 2015 -0700 +++ b/src/share/vm/runtime/simpleThresholdPolicy.inline.hpp Tue Mar 17 19:21:57 2015 -0700 @@ -55,6 +55,13 @@ // Determine if a given method is such a case. bool SimpleThresholdPolicy::is_trivial(Method* method) { if (method->is_accessor()) return true; +#ifdef COMPILERGRAAL + if (TieredCompilation && GraalCompileWithC1Only && + SystemDictionary::graal_loader() != NULL && + method->method_holder()->class_loader() == SystemDictionary::graal_loader()) { + return true; + } +#endif if (method->code() != NULL) { MethodData* mdo = method->method_data(); if (mdo != NULL && mdo->num_loops() == 0 &&