diff --git a/src/hotspot/share/classfile/classLoaderData.cpp b/src/hotspot/share/classfile/classLoaderData.cpp index 74cb71c3ebe..3feb706f394 100644 --- a/src/hotspot/share/classfile/classLoaderData.cpp +++ b/src/hotspot/share/classfile/classLoaderData.cpp @@ -211,9 +211,7 @@ int ClassLoaderData::ChunkedHandleList::count() const { inline void ClassLoaderData::ChunkedHandleList::oops_do_chunk(OopClosure* f, Chunk* c, const juint size) { for (juint i = 0; i < size; i++) { - if (c->_data[i] != NULL) { - f->do_oop(&c->_data[i]); - } + f->do_oop(&c->_data[i]); } }