changeset 18628:4ca70b51c8bb

improved comments
author Doug Simon <doug.simon@oracle.com>
date Thu, 04 Dec 2014 23:09:08 +0100
parents 196cf131ed32
children 8a03753546f3
files src/share/vm/graal/graalRuntime.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.cpp	Thu Dec 04 19:36:50 2014 +0100
+++ b/src/share/vm/graal/graalRuntime.cpp	Thu Dec 04 23:09:08 2014 +0100
@@ -760,7 +760,7 @@
 
 void GraalRuntime::ensure_graal_class_loader_is_initialized() {
   // This initialization code is guarded by a static pointer to the Factory class.
-  // Once it is non-null, the Graal class loader and well know Graal classes are
+  // Once it is non-null, the Graal class loader and well known Graal classes are
   // guaranteed to have been initialized. By going through the static
   // initializer of Factory, we can rely on class initialization semantics to
   // synchronize threads racing to do the initialization.
@@ -782,6 +782,8 @@
       }
     }
 
+    // We cannot use graalJavaAccess for this because we are currently in the
+    // process of initializing that mechanism.
     TempNewSymbol field_name = SymbolTable::new_symbol("useGraalClassLoader", CHECK_ABORT);
     fieldDescriptor field_desc;
     if (klass->find_field(field_name, vmSymbols::bool_signature(), &field_desc) == NULL) {