Mercurial > hg > truffle
diff src/share/vm/graal/graalEnv.cpp @ 3690:f8d7ab42c479
Call NMethodSweeper::possibly_sweep() before registering a method.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 23 Nov 2011 14:52:52 +0100 |
parents | d3d3dd0a3421 |
children | 50a1d38cd7ac |
line wrap: on
line diff
--- a/src/share/vm/graal/graalEnv.cpp Tue Nov 22 11:48:41 2011 +0100 +++ b/src/share/vm/graal/graalEnv.cpp Wed Nov 23 14:52:52 2011 +0100 @@ -27,6 +27,7 @@ #include "classfile/systemDictionary.hpp" #include "classfile/vmSymbols.hpp" #include "code/scopeDesc.hpp" +#include "runtime/sweeper.hpp" #include "compiler/compileBroker.hpp" #include "compiler/compileLog.hpp" #include "compiler/compilerOracle.hpp" @@ -447,6 +448,7 @@ bool has_unsafe_access, bool install_code) { EXCEPTION_CONTEXT; + NMethodSweeper::possibly_sweep(); nmethod* nm = NULL; int comp_level = CompLevel_simple; {