mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8152953: ForceSafepoint operations should be more specific
Reviewed-by: dholmes, sspitsyn, rkennke, coleenp
This commit is contained in:
parent
81f1f2df46
commit
ad4bc13f9f
6 changed files with 40 additions and 14 deletions
|
@ -1945,7 +1945,7 @@ void ClassLoader::compile_the_world_in(char* name, Handle loader, TRAPS) {
|
|||
if (can_be_compiled(m, comp_level)) {
|
||||
if (++_codecache_sweep_counter == CompileTheWorldSafepointInterval) {
|
||||
// Give sweeper a chance to keep up with CTW
|
||||
VM_ForceSafepoint op;
|
||||
VM_CTWThreshold op;
|
||||
VMThread::execute(&op);
|
||||
_codecache_sweep_counter = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue