Mercurial > hg > truffle
comparison src/share/vm/oops/methodOop.cpp @ 5105:95b8a32a7cc3
preparations to avoid endless recompilations because of not updated profiling information
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Mon, 12 Mar 2012 18:40:05 -0700 |
parents | 18a5539bf19b |
children | 70f715dfbb41 |
comparison
equal
deleted
inserted
replaced
5068:6e7c1fb1980f | 5105:95b8a32a7cc3 |
---|---|
49 #include "runtime/relocator.hpp" | 49 #include "runtime/relocator.hpp" |
50 #include "runtime/sharedRuntime.hpp" | 50 #include "runtime/sharedRuntime.hpp" |
51 #include "runtime/signature.hpp" | 51 #include "runtime/signature.hpp" |
52 #include "utilities/quickSort.hpp" | 52 #include "utilities/quickSort.hpp" |
53 #include "utilities/xmlstream.hpp" | 53 #include "utilities/xmlstream.hpp" |
54 #ifdef GRAAL | |
55 #include "graal/graalJavaAccess.hpp" | |
56 #endif | |
54 | 57 |
55 | 58 |
56 // Implementation of methodOopDesc | 59 // Implementation of methodOopDesc |
57 | 60 |
58 address methodOopDesc::get_i2c_entry() { | 61 address methodOopDesc::get_i2c_entry() { |
656 if (is_c2_compile(comp_level)) { | 659 if (is_c2_compile(comp_level)) { |
657 set_not_c2_compilable(); | 660 set_not_c2_compilable(); |
658 } | 661 } |
659 } | 662 } |
660 CompilationPolicy::policy()->disable_compilation(this); | 663 CompilationPolicy::policy()->disable_compilation(this); |
664 | |
665 #ifdef GRAAL | |
666 oop graal_mirror = this->graal_mirror(); | |
667 if (graal_mirror != NULL) { | |
668 HotSpotMethodResolved::set_canBeInlined(graal_mirror, false); | |
669 } | |
670 #endif | |
661 } | 671 } |
662 | 672 |
663 // Revert to using the interpreter and clear out the nmethod | 673 // Revert to using the interpreter and clear out the nmethod |
664 void methodOopDesc::clear_code() { | 674 void methodOopDesc::clear_code() { |
665 | 675 |