8152953: ForceSafepoint operations should be more specific

Reviewed-by: dholmes, sspitsyn, rkennke, coleenp
This commit is contained in:
Robbin Ehn 2017-05-25 09:38:33 +02:00
parent 81f1f2df46
commit ad4bc13f9f
6 changed files with 40 additions and 14 deletions

View file

@ -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;
}