# HG changeset patch # User phh # Date 1586465936 0 # Node ID 6c179587bf5b0ee35f708507dc8230137760a01b # Parent 4698900b8221a5090916379c576868afd41051e7 8241444: Metaspace::_class_vsm not initialized if compressed class pointers are disabled Summary: Initialize _class_vsm to NULL by default Reviewed-by: phh Contributed-by: thomas.stuefe@gmail.com diff -r 4698900b8221 -r 6c179587bf5b src/share/vm/memory/metaspace.cpp --- a/src/share/vm/memory/metaspace.cpp Thu Apr 09 13:07:11 2020 +0000 +++ b/src/share/vm/memory/metaspace.cpp Thu Apr 09 20:58:56 2020 +0000 @@ -3390,6 +3390,8 @@ if (using_class_space()) { // Allocate SpaceManager for classes. _class_vsm = new SpaceManager(ClassType, lock); + } else { + _class_vsm = NULL; } MutexLockerEx cl(SpaceManager::expand_lock(), Mutex::_no_safepoint_check_flag);