# HG changeset patch # User Doug Simon # Date 1417730948 -3600 # Node ID 4ca70b51c8bbe07d81c84aed342f8c4108e97711 # Parent 196cf131ed32946f2567b9973af8e848cac0a665 improved comments diff -r 196cf131ed32 -r 4ca70b51c8bb src/share/vm/graal/graalRuntime.cpp --- 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) {