8187977: Generalize Atomic::xchg to use templates

Reviewed-by: kbarrett, coleenp
This commit is contained in:
Erik Österlund 2017-09-26 21:37:01 +02:00
parent 5b3ed372a9
commit aa72ba3a64
16 changed files with 320 additions and 236 deletions

View file

@ -332,7 +332,7 @@ public:
static void disable_compilation_forever() {
UseCompiler = false;
AlwaysCompileLoopMethods = false;
Atomic::xchg(shutdown_compilation, &_should_compile_new_jobs);
Atomic::xchg(jint(shutdown_compilation), &_should_compile_new_jobs);
}
static bool is_compilation_disabled_forever() {