8184073: Cleanup of compiler activity enum in compileBroker.hpp
authoreosterlund
Wed, 12 Jul 2017 09:49:05 +0200
changeset 46650 642365ee2b92
parent 46649 439ffb1e05ec
child 46651 a0aef4e7599b
child 46652 ab8716d193bb
8184073: Cleanup of compiler activity enum in compileBroker.hpp Summary: An unnamed enum describing compiler activity was given a name and had spelling errors fixed. Reviewed-by: kvn, kbarrett
hotspot/src/share/vm/compiler/compileBroker.hpp
--- a/hotspot/src/share/vm/compiler/compileBroker.hpp	Tue Jul 11 12:00:48 2017 +0200
+++ b/hotspot/src/share/vm/compiler/compileBroker.hpp	Wed Jul 12 09:49:05 2017 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -314,11 +314,11 @@
   // Call this from the compiler at convenient points, to poll for _should_block.
   static void maybe_block();
 
-  enum {
+  enum CompilerActivity {
     // Flags for toggling compiler activity
-    stop_compilation    = 0,
-    run_compilation     = 1,
-    shutdown_compilaton = 2
+    stop_compilation     = 0,
+    run_compilation      = 1,
+    shutdown_compilation = 2
   };
 
   static jint get_compilation_activity_mode() { return _should_compile_new_jobs; }
@@ -332,11 +332,11 @@
   static void disable_compilation_forever() {
     UseCompiler               = false;
     AlwaysCompileLoopMethods  = false;
-    Atomic::xchg(shutdown_compilaton, &_should_compile_new_jobs);
+    Atomic::xchg(shutdown_compilation, &_should_compile_new_jobs);
   }
 
   static bool is_compilation_disabled_forever() {
-    return _should_compile_new_jobs == shutdown_compilaton;
+    return _should_compile_new_jobs == shutdown_compilation;
   }
   static void handle_full_code_cache(int code_blob_type);
   // Ensures that warning is only printed once.