Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/oops/methodOop.cpp Fri Mar 09 13:14:54 2012 -0800 +++ b/src/share/vm/oops/methodOop.cpp Mon Mar 12 18:40:05 2012 -0700 @@ -51,6 +51,9 @@ #include "runtime/signature.hpp" #include "utilities/quickSort.hpp" #include "utilities/xmlstream.hpp" +#ifdef GRAAL +#include "graal/graalJavaAccess.hpp" +#endif // Implementation of methodOopDesc @@ -658,6 +661,13 @@ } } CompilationPolicy::policy()->disable_compilation(this); + +#ifdef GRAAL + oop graal_mirror = this->graal_mirror(); + if (graal_mirror != NULL) { + HotSpotMethodResolved::set_canBeInlined(graal_mirror, false); + } +#endif } // Revert to using the interpreter and clear out the nmethod