Mercurial > hg > truffle
comparison src/share/vm/compiler/compileBroker.cpp @ 12861:1e814e391ee8
8025656: compiler/8013496/Test8013496.sh fails on assert
Summary: Ensure the thread is in correct state; rewrote test in Java
Reviewed-by: kvn, twisti
author | anoll |
---|---|
date | Fri, 04 Oct 2013 09:19:13 +0200 |
parents | 510fbd28919c |
children | 469216acdb28 |
comparison
equal
deleted
inserted
replaced
12333:cacc4c6bfc80 | 12861:1e814e391ee8 |
---|---|
1951 #endif | 1951 #endif |
1952 if (UseCodeCacheFlushing) { | 1952 if (UseCodeCacheFlushing) { |
1953 // Since code cache is full, immediately stop new compiles | 1953 // Since code cache is full, immediately stop new compiles |
1954 if (CompileBroker::set_should_compile_new_jobs(CompileBroker::stop_compilation)) { | 1954 if (CompileBroker::set_should_compile_new_jobs(CompileBroker::stop_compilation)) { |
1955 NMethodSweeper::log_sweep("disable_compiler"); | 1955 NMethodSweeper::log_sweep("disable_compiler"); |
1956 | |
1957 // Switch to 'vm_state'. This ensures that possibly_sweep() can be called | |
1958 // without having to consider the state in which the current thread is. | |
1959 ThreadInVMfromUnknown in_vm; | |
1956 NMethodSweeper::possibly_sweep(); | 1960 NMethodSweeper::possibly_sweep(); |
1957 } | 1961 } |
1958 } else { | 1962 } else { |
1959 UseCompiler = false; | 1963 UseCompiler = false; |
1960 AlwaysCompileLoopMethods = false; | 1964 AlwaysCompileLoopMethods = false; |