Thu, 09 Apr 2020 20:58:56 +0000
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
src/share/vm/memory/metaspace.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/memory/metaspace.cpp Thu Apr 09 13:07:11 2020 +0000 1.2 +++ b/src/share/vm/memory/metaspace.cpp Thu Apr 09 20:58:56 2020 +0000 1.3 @@ -3390,6 +3390,8 @@ 1.4 if (using_class_space()) { 1.5 // Allocate SpaceManager for classes. 1.6 _class_vsm = new SpaceManager(ClassType, lock); 1.7 + } else { 1.8 + _class_vsm = NULL; 1.9 } 1.10 1.11 MutexLockerEx cl(SpaceManager::expand_lock(), Mutex::_no_safepoint_check_flag);