8328064: Remove obsolete comments in constantPool and metadataFactory

Reviewed-by: coleenp
This commit is contained in:
Yude Lin 2024-03-14 06:20:49 +00:00 committed by Denghui Dong
parent 7502dc99bf
commit 6f2676dc5f
2 changed files with 1 additions and 3 deletions
src/hotspot/share

@ -36,8 +36,6 @@ class MetadataFactory : AllStatic {
public:
template <typename T>
static Array<T>* 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<T>(length);
}

@ -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()) {