Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
aa2e3796
D
dragonwell11
项目概览
openanolis
/
dragonwell11
通知
7
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
aa2e3796
编写于
3月 14, 2013
作者:
V
vladidan
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
e6965bcc
895bc874
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
63 addition
and
59 deletion
+63
-59
hotspot/make/bsd/makefiles/gcc.make
hotspot/make/bsd/makefiles/gcc.make
+3
-3
hotspot/make/excludeSrc.make
hotspot/make/excludeSrc.make
+1
-1
hotspot/make/linux/makefiles/gcc.make
hotspot/make/linux/makefiles/gcc.make
+3
-3
hotspot/make/solaris/makefiles/gcc.make
hotspot/make/solaris/makefiles/gcc.make
+2
-2
hotspot/src/cpu/x86/vm/frame_x86.cpp
hotspot/src/cpu/x86/vm/frame_x86.cpp
+1
-1
hotspot/src/cpu/x86/vm/frame_x86.hpp
hotspot/src/cpu/x86/vm/frame_x86.hpp
+1
-1
hotspot/src/share/vm/c1/c1_LIR.hpp
hotspot/src/share/vm/c1/c1_LIR.hpp
+1
-1
hotspot/src/share/vm/ci/ciTypeFlow.cpp
hotspot/src/share/vm/ci/ciTypeFlow.cpp
+1
-1
hotspot/src/share/vm/code/compressedStream.cpp
hotspot/src/share/vm/code/compressedStream.cpp
+2
-2
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
+0
-16
hotspot/src/share/vm/memory/filemap.hpp
hotspot/src/share/vm/memory/filemap.hpp
+11
-4
hotspot/src/share/vm/prims/jvmtiImpl.cpp
hotspot/src/share/vm/prims/jvmtiImpl.cpp
+1
-1
hotspot/src/share/vm/prims/jvmtiTrace.hpp
hotspot/src/share/vm/prims/jvmtiTrace.hpp
+2
-2
hotspot/src/share/vm/runtime/arguments.cpp
hotspot/src/share/vm/runtime/arguments.cpp
+34
-21
未找到文件。
hotspot/make/bsd/makefiles/gcc.make
浏览文件 @
aa2e3796
...
...
@@ -168,12 +168,12 @@ endif
# conversions which might affect the values. To avoid that, we need to turn
# it off explicitly.
ifneq
"$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
ACCEPTABLE_WARNINGS
=
-Wpointer-arith
-Wsign-compare
WARNING_FLAGS
=
-Wpointer-arith
-Wsign-compare
-Wundef
else
ACCEPTABLE_WARNINGS
=
-Wpointer-arith
-Wconversion
-Wsign-compare
WARNING_FLAGS
=
-Wpointer-arith
-Wconversion
-Wsign-compare
-Wundef
endif
CFLAGS_WARN/
DEFAULT
=
$(WARNINGS_ARE_ERRORS)
$(
ACCEPTABLE_WARNIN
GS)
CFLAGS_WARN/
DEFAULT
=
$(WARNINGS_ARE_ERRORS)
$(
WARNING_FLA
GS)
# Special cases
CFLAGS_WARN/
BYFILE
=
$
(
CFLAGS_WARN/
$@
)
$
(
CFLAGS_WARN/DEFAULT
$
(
CFLAGS_WARN/
$@
))
# XXXDARWIN: for _dyld_bind_fully_image_containing_address
...
...
hotspot/make/excludeSrc.make
浏览文件 @
aa2e3796
...
...
@@ -69,7 +69,7 @@ ifeq ($(INCLUDE_CDS), false)
CXXFLAGS
+=
-DINCLUDE_CDS
=
0
CFLAGS
+=
-DINCLUDE_CDS
=
0
Src_Files_EXCLUDE
+=
metaspaceShared.cpp
Src_Files_EXCLUDE
+=
filemap.cpp
metaspaceShared.cpp
endif
ifeq
($(INCLUDE_ALL_GCS), false)
...
...
hotspot/make/linux/makefiles/gcc.make
浏览文件 @
aa2e3796
...
...
@@ -131,12 +131,12 @@ WARNINGS_ARE_ERRORS = -Werror
# conversions which might affect the values. To avoid that, we need to turn
# it off explicitly.
ifneq
"$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
ACCEPTABLE_WARNINGS
=
-Wpointer-arith
-Wsign-compare
WARNING_FLAGS
=
-Wpointer-arith
-Wsign-compare
-Wundef
else
ACCEPTABLE_WARNINGS
=
-Wpointer-arith
-Wconversion
-Wsign-compare
WARNING_FLAGS
=
-Wpointer-arith
-Wconversion
-Wsign-compare
-Wundef
endif
CFLAGS_WARN/
DEFAULT
=
$(WARNINGS_ARE_ERRORS)
$(
ACCEPTABLE_WARNIN
GS)
CFLAGS_WARN/
DEFAULT
=
$(WARNINGS_ARE_ERRORS)
$(
WARNING_FLA
GS)
# Special cases
CFLAGS_WARN/
BYFILE
=
$
(
CFLAGS_WARN/
$@
)
$
(
CFLAGS_WARN/DEFAULT
$
(
CFLAGS_WARN/
$@
))
...
...
hotspot/make/solaris/makefiles/gcc.make
浏览文件 @
aa2e3796
...
...
@@ -118,8 +118,8 @@ endif
# Compiler warnings are treated as errors
WARNINGS_ARE_ERRORS
=
-Werror
# Enable these warnings. See 'info gcc' about details on these options
ADDITIONAL_WARNINGS
=
-Wpointer-arith
-Wconversion
-Wsign-compare
CFLAGS_WARN/
DEFAULT
=
$(WARNINGS_ARE_ERRORS)
$(
ADDITIONAL_WARNINGS)
WARNING_FLAGS
=
-Wpointer-arith
-Wconversion
-Wsign-compare
-Wundef
CFLAGS_WARN/
DEFAULT
=
$(WARNINGS_ARE_ERRORS)
$(
WARNING_FLAGS)
# Special cases
CFLAGS_WARN/
BYFILE
=
$
(
CFLAGS_WARN/
$@
)
$
(
CFLAGS_WARN/DEFAULT
$
(
CFLAGS_WARN/
$@
))
...
...
hotspot/src/cpu/x86/vm/frame_x86.cpp
浏览文件 @
aa2e3796
...
...
@@ -356,7 +356,7 @@ frame frame::sender_for_entry_frame(RegisterMap* map) const {
// Verifies the calculated original PC of a deoptimization PC for the
// given unextended SP. The unextended SP might also be the saved SP
// for MethodHandle call sites.
#if ASSERT
#if
def
ASSERT
void
frame
::
verify_deopt_original_pc
(
nmethod
*
nm
,
intptr_t
*
unextended_sp
,
bool
is_method_handle_return
)
{
frame
fr
;
...
...
hotspot/src/cpu/x86/vm/frame_x86.hpp
浏览文件 @
aa2e3796
...
...
@@ -170,7 +170,7 @@
return
(
intptr_t
*
)
addr_at
(
offset
);
}
#if ASSERT
#if
def
ASSERT
// Used in frame::sender_for_{interpreter,compiled}_frame
static
void
verify_deopt_original_pc
(
nmethod
*
nm
,
intptr_t
*
unextended_sp
,
bool
is_method_handle_return
=
false
);
static
void
verify_deopt_mh_original_pc
(
nmethod
*
nm
,
intptr_t
*
unextended_sp
)
{
...
...
hotspot/src/share/vm/c1/c1_LIR.hpp
浏览文件 @
aa2e3796
...
...
@@ -2375,7 +2375,7 @@ class LIR_OpVisitState: public StackObj {
// collects all register operands of the instruction
void
visit
(
LIR_Op
*
op
);
#if ASSERT
#if
def
ASSERT
// check that an operation has no operands
bool
no_operands
(
LIR_Op
*
op
);
#endif
...
...
hotspot/src/share/vm/ci/ciTypeFlow.cpp
浏览文件 @
aa2e3796
...
...
@@ -2540,7 +2540,7 @@ void ciTypeFlow::build_loop_tree(Block* blk) {
}
else
if
(
innermost
->
head
()
==
blk
)
{
// If loop header, complete the tree pointers
if
(
blk
->
loop
()
!=
innermost
)
{
#if ASSERT
#if
def
ASSERT
assert
(
blk
->
loop
()
->
head
()
==
innermost
->
head
(),
"same head"
);
Loop
*
dl
;
for
(
dl
=
innermost
;
dl
!=
NULL
&&
dl
!=
blk
->
loop
();
dl
=
dl
->
parent
());
...
...
hotspot/src/share/vm/code/compressedStream.cpp
浏览文件 @
aa2e3796
...
...
@@ -195,7 +195,7 @@ void CompressedWriteStream::write_int_mb(jint value) {
// for this block (a matching directive turns it back on later).
// These directives can be removed once the MS VS.NET 2005
// compiler stack overflow is fixed.
#if _MSC_VER >=1400 && !defined(_WIN64)
#if
defined(_MSC_VER) &&
_MSC_VER >=1400 && !defined(_WIN64)
#pragma optimize("", off)
#pragma warning(disable: 4748)
#endif
...
...
@@ -276,7 +276,7 @@ void test_compressed_stream(int trace) {
guarantee
(
fails
==
0
,
"test failures"
);
}
#if _MSC_VER >=1400 && !defined(_WIN64)
#if
defined(_MSC_VER) &&
_MSC_VER >=1400 && !defined(_WIN64)
#pragma warning(default: 4748)
#pragma optimize("", on)
#endif
...
...
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
浏览文件 @
aa2e3796
...
...
@@ -1310,11 +1310,6 @@ void ConcurrentMark::checkpointRootsFinal(bool clear_all_soft_refs) {
_markStack
.
expand
();
}
#if VERIFY_OBJS_PROCESSED
_scan_obj_cl
.
objs_processed
=
0
;
ThreadLocalObjQueue
::
objs_enqueued
=
0
;
#endif
// Statistics
double
now
=
os
::
elapsedTime
();
_remark_mark_times
.
add
((
mark_work_end
-
start
)
*
1000.0
);
...
...
@@ -2555,17 +2550,6 @@ void ConcurrentMark::checkpointRootsFinalWork() {
guarantee
(
satb_mq_set
.
completed_buffers_num
()
==
0
,
"invariant"
);
print_stats
();
#if VERIFY_OBJS_PROCESSED
if
(
_scan_obj_cl
.
objs_processed
!=
ThreadLocalObjQueue
::
objs_enqueued
)
{
gclog_or_tty
->
print_cr
(
"Processed = %d, enqueued = %d."
,
_scan_obj_cl
.
objs_processed
,
ThreadLocalObjQueue
::
objs_enqueued
);
guarantee
(
_scan_obj_cl
.
objs_processed
==
ThreadLocalObjQueue
::
objs_enqueued
,
"Different number of objs processed and enqueued."
);
}
#endif
}
#ifndef PRODUCT
...
...
hotspot/src/share/vm/memory/filemap.hpp
浏览文件 @
aa2e3796
...
...
@@ -112,12 +112,19 @@ public:
char
*
region_base
(
int
i
)
{
return
_header
.
_space
[
i
].
_base
;
}
struct
FileMapHeader
*
header
()
{
return
&
_header
;
}
static
void
set_current_info
(
FileMapInfo
*
info
)
{
_current_info
=
info
;
}
static
FileMapInfo
*
current_info
()
{
return
_current_info
;
}
static
void
set_current_info
(
FileMapInfo
*
info
)
{
CDS_ONLY
(
_current_info
=
info
;)
}
static
FileMapInfo
*
current_info
()
{
CDS_ONLY
(
return
_current_info
;)
NOT_CDS
(
return
NULL
;)
}
static
void
assert_mark
(
bool
check
);
// File manipulation.
bool
initialize
();
bool
initialize
()
NOT_CDS_RETURN_
(
false
)
;
bool
open_for_read
();
void
open_for_write
();
void
write_header
();
...
...
@@ -141,7 +148,7 @@ public:
void
fail_continue
(
const
char
*
msg
,
...);
// Return true if given address is in the mapped shared space.
bool
is_in_shared_space
(
const
void
*
p
);
bool
is_in_shared_space
(
const
void
*
p
)
NOT_CDS_RETURN_
(
false
)
;
};
#endif // SHARE_VM_MEMORY_FILEMAP_HPP
hotspot/src/share/vm/prims/jvmtiImpl.cpp
浏览文件 @
aa2e3796
...
...
@@ -890,7 +890,7 @@ void JvmtiSuspendControl::print() {
tty
->
print
(
"Suspended Threads: ["
);
for
(
JavaThread
*
thread
=
Threads
::
first
();
thread
!=
NULL
;
thread
=
thread
->
next
())
{
#if JVMTI_TRACE
#if
def
JVMTI_TRACE
const
char
*
name
=
JvmtiTrace
::
safe_get_thread_name
(
thread
);
#else
const
char
*
name
=
""
;
...
...
hotspot/src/share/vm/prims/jvmtiTrace.hpp
浏览文件 @
aa2e3796
...
...
@@ -43,10 +43,10 @@
// Support tracing except in product build on the client compiler
#ifndef PRODUCT
#define JVMTI_TRACE
1
#define JVMTI_TRACE
#else
#ifdef COMPILER2
#define JVMTI_TRACE
1
#define JVMTI_TRACE
#endif
#endif
...
...
hotspot/src/share/vm/runtime/arguments.cpp
浏览文件 @
aa2e3796
...
...
@@ -2273,10 +2273,12 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args,
}
#if !INCLUDE_JVMTI
if
((
strcmp
(
name
,
"hprof"
)
==
0
)
||
(
strcmp
(
name
,
"jdwp"
)
==
0
))
{
warning
(
"profiling and debugging agents are not supported in this VM"
);
}
else
jio_fprintf
(
defaultStream
::
error_stream
(),
"Profiling and debugging agents are not supported in this VM
\n
"
);
return
JNI_ERR
;
}
#endif // !INCLUDE_JVMTI
add_init_library
(
name
,
options
);
add_init_library
(
name
,
options
);
}
// -agentlib and -agentpath
}
else
if
(
match_option
(
option
,
"-agentlib:"
,
&
tail
)
||
...
...
@@ -2293,16 +2295,19 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args,
}
#if !INCLUDE_JVMTI
if
((
strcmp
(
name
,
"hprof"
)
==
0
)
||
(
strcmp
(
name
,
"jdwp"
)
==
0
))
{
warning
(
"profiling and debugging agents are not supported in this VM"
);
}
else
jio_fprintf
(
defaultStream
::
error_stream
(),
"Profiling and debugging agents are not supported in this VM
\n
"
);
return
JNI_ERR
;
}
#endif // !INCLUDE_JVMTI
add_init_agent
(
name
,
options
,
is_absolute_path
);
}
// -javaagent
}
else
if
(
match_option
(
option
,
"-javaagent:"
,
&
tail
))
{
#if !INCLUDE_JVMTI
warning
(
"Instrumentation agents are not supported in this VM"
);
jio_fprintf
(
defaultStream
::
error_stream
(),
"Instrumentation agents are not supported in this VM
\n
"
);
return
JNI_ERR
;
#else
if
(
tail
!=
NULL
)
{
char
*
options
=
strcpy
(
NEW_C_HEAP_ARRAY
(
char
,
strlen
(
tail
)
+
1
,
mtInternal
),
tail
);
...
...
@@ -2443,8 +2448,9 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args,
#if INCLUDE_FPROF
_has_profile
=
true
;
#else // INCLUDE_FPROF
// do we have to exit?
warning
(
"Flat profiling is not supported in this VM."
);
jio_fprintf
(
defaultStream
::
error_stream
(),
"Flat profiling is not supported in this VM.
\n
"
);
return
JNI_ERR
;
#endif // INCLUDE_FPROF
// -Xaprof
}
else
if
(
match_option
(
option
,
"-Xaprof"
,
&
tail
))
{
...
...
@@ -2478,8 +2484,9 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args,
#if INCLUDE_MANAGEMENT
FLAG_SET_CMDLINE
(
bool
,
ManagementServer
,
true
);
#else
vm_exit_during_initialization
(
"-Dcom.sun.management is not supported in this VM."
,
NULL
);
jio_fprintf
(
defaultStream
::
output_stream
(),
"-Dcom.sun.management is not supported in this VM.
\n
"
);
return
JNI_ERR
;
#endif
}
// -Xint
...
...
@@ -2492,16 +2499,10 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args,
}
else
if
(
match_option
(
option
,
"-Xcomp"
,
&
tail
))
{
// for testing the compiler; turn off all flags that inhibit compilation
set_mode_flags
(
_comp
);
// -Xshare:dump
}
else
if
(
match_option
(
option
,
"-Xshare:dump"
,
&
tail
))
{
#if !INCLUDE_CDS
vm_exit_during_initialization
(
"Dumping a shared archive is not supported in this VM."
,
NULL
);
#else
FLAG_SET_CMDLINE
(
bool
,
DumpSharedSpaces
,
true
);
set_mode_flags
(
_int
);
// Prevent compilation, which creates objects
#endif
// -Xshare:on
}
else
if
(
match_option
(
option
,
"-Xshare:on"
,
&
tail
))
{
FLAG_SET_CMDLINE
(
bool
,
UseSharedSpaces
,
true
);
...
...
@@ -2514,7 +2515,6 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args,
}
else
if
(
match_option
(
option
,
"-Xshare:off"
,
&
tail
))
{
FLAG_SET_CMDLINE
(
bool
,
UseSharedSpaces
,
false
);
FLAG_SET_CMDLINE
(
bool
,
RequireSharedSpaces
,
false
);
// -Xverify
}
else
if
(
match_option
(
option
,
"-Xverify"
,
&
tail
))
{
if
(
strcmp
(
tail
,
":all"
)
==
0
||
strcmp
(
tail
,
""
)
==
0
)
{
...
...
@@ -2828,8 +2828,9 @@ SOLARIS_ONLY(
FLAG_SET_CMDLINE
(
bool
,
UseVMInterruptibleIO
,
true
);
#if !INCLUDE_MANAGEMENT
}
else
if
(
match_option
(
option
,
"-XX:+ManagementServer"
,
&
tail
))
{
vm_exit_during_initialization
(
"ManagementServer is not supported in this VM."
,
NULL
);
jio_fprintf
(
defaultStream
::
error_stream
(),
"ManagementServer is not supported in this VM.
\n
"
);
return
JNI_ERR
;
#endif // INCLUDE_MANAGEMENT
}
else
if
(
match_option
(
option
,
"-XX:"
,
&
tail
))
{
// -XX:xxxx
// Skip -XX:Flags= since that case has already been handled
...
...
@@ -3135,7 +3136,9 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
#if INCLUDE_NMT
MemTracker
::
init_tracking_options
(
tail
);
#else
warning
(
"Native Memory Tracking is not supported in this VM"
);
jio_fprintf
(
defaultStream
::
error_stream
(),
"Native Memory Tracking is not supported in this VM
\n
"
);
return
JNI_ERR
;
#endif
}
...
...
@@ -3254,6 +3257,16 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
force_serial_gc
();
#endif // INCLUDE_ALL_GCS
#if !INCLUDE_CDS
if
(
DumpSharedSpaces
||
RequireSharedSpaces
)
{
jio_fprintf
(
defaultStream
::
error_stream
(),
"Shared spaces are not supported in this VM
\n
"
);
return
JNI_ERR
;
}
if
((
UseSharedSpaces
&&
FLAG_IS_CMDLINE
(
UseSharedSpaces
))
||
PrintSharedSpaces
)
{
warning
(
"Shared spaces are not supported in this VM"
);
FLAG_SET_DEFAULT
(
UseSharedSpaces
,
false
);
FLAG_SET_DEFAULT
(
PrintSharedSpaces
,
false
);
}
no_shared_spaces
();
#endif // INCLUDE_CDS
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录