diff --git a/src/hotspot/share/memory/metadataFactory.hpp b/src/hotspot/share/memory/metadataFactory.hpp index 5930d806562..14cac8dc191 100644 --- a/src/hotspot/share/memory/metadataFactory.hpp +++ b/src/hotspot/share/memory/metadataFactory.hpp @@ -36,8 +36,6 @@ class MetadataFactory : AllStatic { public: template static Array* new_array(ClassLoaderData* loader_data, int length, TRAPS) { - // The "true" argument is because all metadata arrays are read only when - // dumped to the shared archive return new (loader_data, length, THREAD) Array(length); } diff --git a/src/hotspot/share/oops/constantPool.cpp b/src/hotspot/share/oops/constantPool.cpp index 623d8e326b0..1649b843cc8 100644 --- a/src/hotspot/share/oops/constantPool.cpp +++ b/src/hotspot/share/oops/constantPool.cpp @@ -155,7 +155,7 @@ void ConstantPool::metaspace_pointers_do(MetaspaceClosure* it) { for (int i = 0; i < length(); i++) { // The only MSO's embedded in the CP entries are Symbols: - // JVM_CONSTANT_String (normal and pseudo) + // JVM_CONSTANT_String // JVM_CONSTANT_Utf8 constantTag ctag = tag_at(i); if (ctag.is_string() || ctag.is_utf8()) {