From c37d02aef38da178fcf56e3c5cccc41cc5175421 Mon Sep 17 00:00:00 2001 From: Elif Aslan Date: Fri, 7 Jun 2024 19:32:57 +0000 Subject: [PATCH] 8312412: Uninitialized klassVtable::_verify_count field Reviewed-by: shade, phh --- src/hotspot/share/oops/klassVtable.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hotspot/share/oops/klassVtable.hpp b/src/hotspot/share/oops/klassVtable.hpp index f986139d3f4..349a859a17f 100644 --- a/src/hotspot/share/oops/klassVtable.hpp +++ b/src/hotspot/share/oops/klassVtable.hpp @@ -54,6 +54,9 @@ class klassVtable { klassVtable(Klass* klass, void* base, int length) : _klass(klass) { _tableOffset = int((address)base - (address)klass); _length = length; +#ifndef PRODUCT + _verify_count = 0; +#endif } // accessors