Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
3689:9878f53ebe09 | 3690:f8d7ab42c479 |
---|---|
25 #include "precompiled.hpp" | 25 #include "precompiled.hpp" |
26 #include "graal/graalEnv.hpp" | 26 #include "graal/graalEnv.hpp" |
27 #include "classfile/systemDictionary.hpp" | 27 #include "classfile/systemDictionary.hpp" |
28 #include "classfile/vmSymbols.hpp" | 28 #include "classfile/vmSymbols.hpp" |
29 #include "code/scopeDesc.hpp" | 29 #include "code/scopeDesc.hpp" |
30 #include "runtime/sweeper.hpp" | |
30 #include "compiler/compileBroker.hpp" | 31 #include "compiler/compileBroker.hpp" |
31 #include "compiler/compileLog.hpp" | 32 #include "compiler/compileLog.hpp" |
32 #include "compiler/compilerOracle.hpp" | 33 #include "compiler/compilerOracle.hpp" |
33 #include "interpreter/linkResolver.hpp" | 34 #include "interpreter/linkResolver.hpp" |
34 #include "memory/allocation.inline.hpp" | 35 #include "memory/allocation.inline.hpp" |
445 int compile_id, | 446 int compile_id, |
446 bool has_debug_info, | 447 bool has_debug_info, |
447 bool has_unsafe_access, | 448 bool has_unsafe_access, |
448 bool install_code) { | 449 bool install_code) { |
449 EXCEPTION_CONTEXT; | 450 EXCEPTION_CONTEXT; |
451 NMethodSweeper::possibly_sweep(); | |
450 nmethod* nm = NULL; | 452 nmethod* nm = NULL; |
451 int comp_level = CompLevel_simple; | 453 int comp_level = CompLevel_simple; |
452 { | 454 { |
453 // To prevent compile queue updates. | 455 // To prevent compile queue updates. |
454 MutexLocker locker(MethodCompileQueue_lock, THREAD); | 456 MutexLocker locker(MethodCompileQueue_lock, THREAD); |