From b2071f79d854f40df0f3bc2de6828fbcea4d325a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20=C3=96sterlund?= Date: Wed, 25 Jan 2023 08:17:56 +0000 Subject: [PATCH] 8300657: Remove null filtering in CLD oop handle area Reviewed-by: coleenp, dholmes --- src/hotspot/share/classfile/classLoaderData.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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]); } }