Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
19944:077c16efeb6d | 19945:f2bdbfe9201b |
---|---|
53 | 53 |
54 // Simple methods are as good being compiled with C1 as C2. | 54 // Simple methods are as good being compiled with C1 as C2. |
55 // Determine if a given method is such a case. | 55 // Determine if a given method is such a case. |
56 bool SimpleThresholdPolicy::is_trivial(Method* method) { | 56 bool SimpleThresholdPolicy::is_trivial(Method* method) { |
57 if (method->is_accessor()) return true; | 57 if (method->is_accessor()) return true; |
58 #ifdef COMPILERGRAAL | |
59 if (TieredCompilation && GraalCompileWithC1Only && | |
60 SystemDictionary::graal_loader() != NULL && | |
61 method->method_holder()->class_loader() == SystemDictionary::graal_loader()) { | |
62 return true; | |
63 } | |
64 #endif | |
58 if (method->code() != NULL) { | 65 if (method->code() != NULL) { |
59 MethodData* mdo = method->method_data(); | 66 MethodData* mdo = method->method_data(); |
60 if (mdo != NULL && mdo->num_loops() == 0 && | 67 if (mdo != NULL && mdo->num_loops() == 0 && |
61 (method->code_size() < 5 || (mdo->num_blocks() < 4) && (method->code_size() < 15))) { | 68 (method->code_size() < 5 || (mdo->num_blocks() < 4) && (method->code_size() < 15))) { |
62 return !mdo->would_profile(); | 69 return !mdo->would_profile(); |