提交 0b48e205 编写于 作者: P phh

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
上级 3328706a
...@@ -3390,6 +3390,8 @@ void Metaspace::initialize(Mutex* lock, MetaspaceType type) { ...@@ -3390,6 +3390,8 @@ void Metaspace::initialize(Mutex* lock, MetaspaceType type) {
if (using_class_space()) { if (using_class_space()) {
// Allocate SpaceManager for classes. // Allocate SpaceManager for classes.
_class_vsm = new SpaceManager(ClassType, lock); _class_vsm = new SpaceManager(ClassType, lock);
} else {
_class_vsm = NULL;
} }
MutexLockerEx cl(SpaceManager::expand_lock(), Mutex::_no_safepoint_check_flag); MutexLockerEx cl(SpaceManager::expand_lock(), Mutex::_no_safepoint_check_flag);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册