mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8294014: Remove redundant UseCompiler conditions
Reviewed-by: kvn, thartmann
This commit is contained in:
parent
84ee1a291c
commit
0f28cb06ab
2 changed files with 3 additions and 3 deletions
|
@ -331,8 +331,8 @@ public:
|
|||
shutdown_compilation = 2
|
||||
};
|
||||
|
||||
static jint get_compilation_activity_mode() { return _should_compile_new_jobs; }
|
||||
static bool should_compile_new_jobs() { return UseCompiler && (_should_compile_new_jobs == run_compilation); }
|
||||
static inline jint get_compilation_activity_mode() { return _should_compile_new_jobs; }
|
||||
static inline bool should_compile_new_jobs() { return UseCompiler && (_should_compile_new_jobs == run_compilation); }
|
||||
static bool set_should_compile_new_jobs(jint new_state) {
|
||||
// Return success if the current caller set it
|
||||
jint old = Atomic::cmpxchg(&_should_compile_new_jobs, 1-new_state, new_state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue