Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
f4d5e178
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f4d5e178
编写于
1月 14, 2013
作者:
B
brutisso
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8004018: Remove old initialization flags
Reviewed-by: dholmes, stefank Contributed-by: erik.helin@oracle.com
上级
fd0689d0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
32 addition
and
63 deletion
+32
-63
src/share/vm/runtime/globals.hpp
src/share/vm/runtime/globals.hpp
+0
-12
src/share/vm/runtime/thread.cpp
src/share/vm/runtime/thread.cpp
+32
-51
未找到文件。
src/share/vm/runtime/globals.hpp
浏览文件 @
f4d5e178
...
...
@@ -969,18 +969,6 @@ class CommandLineFlags {
notproduct(uintx, WarnOnStalledSpinLock, 0, \
"Prints warnings for stalled SpinLocks") \
\
develop(bool, InitializeJavaLangSystem, true, \
"Initialize java.lang.System - turn off for individual " \
"method debugging") \
\
develop(bool, InitializeJavaLangString, true, \
"Initialize java.lang.String - turn off for individual " \
"method debugging") \
\
develop(bool, InitializeJavaLangExceptionsErrors, true, \
"Initialize various error and exception classes - turn off for " \
"individual method debugging") \
\
product(bool, RegisterFinalizersAtInit, true, \
"Register finalizable objects at end of Object.<init> or " \
"after allocation") \
...
...
src/share/vm/runtime/thread.cpp
浏览文件 @
f4d5e178
...
...
@@ -1716,7 +1716,6 @@ static void ensure_join(JavaThread* thread) {
// cleanup_failed_attach_current_thread as well.
void
JavaThread
::
exit
(
bool
destroy_vm
,
ExitType
exit_type
)
{
assert
(
this
==
JavaThread
::
current
(),
"thread consistency check"
);
if
(
!
InitializeJavaLangSystem
)
return
;
HandleMark
hm
(
this
);
Handle
uncaught_exception
(
this
,
this
->
pending_exception
());
...
...
@@ -3469,11 +3468,7 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
create_vm_init_libraries
();
}
if
(
InitializeJavaLangString
)
{
initialize_class
(
vmSymbols
::
java_lang_String
(),
CHECK_0
);
}
else
{
warning
(
"java.lang.String not initialized"
);
}
initialize_class
(
vmSymbols
::
java_lang_String
(),
CHECK_0
);
if
(
AggressiveOpts
)
{
{
...
...
@@ -3514,53 +3509,39 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
}
// Initialize java_lang.System (needed before creating the thread)
if
(
InitializeJavaLangSystem
)
{
initialize_class
(
vmSymbols
::
java_lang_System
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_ThreadGroup
(),
CHECK_0
);
Handle
thread_group
=
create_initial_thread_group
(
CHECK_0
);
Universe
::
set_main_thread_group
(
thread_group
());
initialize_class
(
vmSymbols
::
java_lang_Thread
(),
CHECK_0
);
oop
thread_object
=
create_initial_thread
(
thread_group
,
main_thread
,
CHECK_0
);
main_thread
->
set_threadObj
(
thread_object
);
// Set thread status to running since main thread has
// been started and running.
java_lang_Thread
::
set_thread_status
(
thread_object
,
java_lang_Thread
::
RUNNABLE
);
// The VM creates & returns objects of this class. Make sure it's initialized.
initialize_class
(
vmSymbols
::
java_lang_Class
(),
CHECK_0
);
// The VM preresolves methods to these classes. Make sure that they get initialized
initialize_class
(
vmSymbols
::
java_lang_reflect_Method
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_ref_Finalizer
(),
CHECK_0
);
call_initializeSystemClass
(
CHECK_0
);
// get the Java runtime name after java.lang.System is initialized
JDK_Version
::
set_runtime_name
(
get_java_runtime_name
(
THREAD
));
JDK_Version
::
set_runtime_version
(
get_java_runtime_version
(
THREAD
));
}
else
{
warning
(
"java.lang.System not initialized"
);
}
initialize_class
(
vmSymbols
::
java_lang_System
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_ThreadGroup
(),
CHECK_0
);
Handle
thread_group
=
create_initial_thread_group
(
CHECK_0
);
Universe
::
set_main_thread_group
(
thread_group
());
initialize_class
(
vmSymbols
::
java_lang_Thread
(),
CHECK_0
);
oop
thread_object
=
create_initial_thread
(
thread_group
,
main_thread
,
CHECK_0
);
main_thread
->
set_threadObj
(
thread_object
);
// Set thread status to running since main thread has
// been started and running.
java_lang_Thread
::
set_thread_status
(
thread_object
,
java_lang_Thread
::
RUNNABLE
);
// The VM creates & returns objects of this class. Make sure it's initialized.
initialize_class
(
vmSymbols
::
java_lang_Class
(),
CHECK_0
);
// The VM preresolves methods to these classes. Make sure that they get initialized
initialize_class
(
vmSymbols
::
java_lang_reflect_Method
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_ref_Finalizer
(),
CHECK_0
);
call_initializeSystemClass
(
CHECK_0
);
// get the Java runtime name after java.lang.System is initialized
JDK_Version
::
set_runtime_name
(
get_java_runtime_name
(
THREAD
));
JDK_Version
::
set_runtime_version
(
get_java_runtime_version
(
THREAD
));
// an instance of OutOfMemory exception has been allocated earlier
if
(
InitializeJavaLangExceptionsErrors
)
{
initialize_class
(
vmSymbols
::
java_lang_OutOfMemoryError
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_NullPointerException
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_ClassCastException
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_ArrayStoreException
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_ArithmeticException
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_StackOverflowError
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_IllegalMonitorStateException
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
CHECK_0
);
}
else
{
warning
(
"java.lang.OutOfMemoryError has not been initialized"
);
warning
(
"java.lang.NullPointerException has not been initialized"
);
warning
(
"java.lang.ClassCastException has not been initialized"
);
warning
(
"java.lang.ArrayStoreException has not been initialized"
);
warning
(
"java.lang.ArithmeticException has not been initialized"
);
warning
(
"java.lang.StackOverflowError has not been initialized"
);
warning
(
"java.lang.IllegalArgumentException has not been initialized"
);
}
initialize_class
(
vmSymbols
::
java_lang_OutOfMemoryError
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_NullPointerException
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_ClassCastException
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_ArrayStoreException
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_ArithmeticException
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_StackOverflowError
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_IllegalMonitorStateException
(),
CHECK_0
);
initialize_class
(
vmSymbols
::
java_lang_IllegalArgumentException
(),
CHECK_0
);
}
// See : bugid 4211085.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录