--- a/src/hotspot/share/oops/constantPool.cpp Mon Aug 20 10:04:00 2018 +0200
+++ b/src/hotspot/share/oops/constantPool.cpp Mon Aug 20 08:25:57 2018 -0400
@@ -221,7 +221,7 @@
allocate_resolved_klasses(loader_data, num_klasses, THREAD);
}
-// Anonymous class support:
+// Unsafe anonymous class support:
void ConstantPool::klass_at_put(int class_index, int name_index, int resolved_klass_index, Klass* k, Symbol* name) {
assert(is_within_bounds(class_index), "index out of bounds");
assert(is_within_bounds(name_index), "index out of bounds");
@@ -243,7 +243,7 @@
}
}
-// Anonymous class support:
+// Unsafe anonymous class support:
void ConstantPool::klass_at_put(int class_index, Klass* k) {
assert(k != NULL, "must be valid klass");
CPKlassSlot kslot = klass_slot_at(class_index);