Skip to content

Commit 6f2676d

Browse files
linadeD-D-H
authored andcommitted
8328064: Remove obsolete comments in constantPool and metadataFactory
Reviewed-by: coleenp
1 parent 7502dc9 commit 6f2676d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/hotspot/share/memory/metadataFactory.hpp

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ class MetadataFactory : AllStatic {
3636
public:
3737
template <typename T>
3838
static Array<T>* new_array(ClassLoaderData* loader_data, int length, TRAPS) {
39-
// The "true" argument is because all metadata arrays are read only when
40-
// dumped to the shared archive
4139
return new (loader_data, length, THREAD) Array<T>(length);
4240
}
4341

src/hotspot/share/oops/constantPool.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ void ConstantPool::metaspace_pointers_do(MetaspaceClosure* it) {
155155

156156
for (int i = 0; i < length(); i++) {
157157
// The only MSO's embedded in the CP entries are Symbols:
158-
// JVM_CONSTANT_String (normal and pseudo)
158+
// JVM_CONSTANT_String
159159
// JVM_CONSTANT_Utf8
160160
constantTag ctag = tag_at(i);
161161
if (ctag.is_string() || ctag.is_utf8()) {

0 commit comments

Comments
 (0)