Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
2740fd12
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看板
提交
2740fd12
编写于
3月 12, 2015
作者:
D
dlong
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
e2005790
b3e15b87
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
22 addition
and
52 deletion
+22
-52
agent/src/os/solaris/proc/saproc.cpp
agent/src/os/solaris/proc/saproc.cpp
+7
-7
make/hotspot_version
make/hotspot_version
+1
-1
make/linux/makefiles/gcc.make
make/linux/makefiles/gcc.make
+7
-13
src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
...ion/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
+0
-1
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
+0
-1
src/share/vm/gc_implementation/g1/vm_operations_g1.cpp
src/share/vm/gc_implementation/g1/vm_operations_g1.cpp
+0
-1
src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
...are/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
+0
-1
src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
.../gc_implementation/parallelScavenge/psParallelCompact.cpp
+0
-1
src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp
...hare/vm/gc_implementation/parallelScavenge/psScavenge.cpp
+0
-1
src/share/vm/gc_implementation/shared/gcTraceTime.cpp
src/share/vm/gc_implementation/shared/gcTraceTime.cpp
+2
-4
src/share/vm/memory/genCollectedHeap.cpp
src/share/vm/memory/genCollectedHeap.cpp
+0
-1
src/share/vm/runtime/arguments.cpp
src/share/vm/runtime/arguments.cpp
+4
-4
src/share/vm/runtime/arguments.hpp
src/share/vm/runtime/arguments.hpp
+1
-6
src/share/vm/runtime/arguments_ext.hpp
src/share/vm/runtime/arguments_ext.hpp
+0
-10
未找到文件。
agent/src/os/solaris/proc/saproc.cpp
浏览文件 @
2740fd12
...
...
@@ -314,7 +314,7 @@ static void * pathmap_dlopen(const char * name, int mode) {
handle
=
dlopen
(
name
,
mode
);
}
if
(
_libsaproc_debug
)
{
printf
(
"libsaproc DEBUG: pathmap_dlopen %s return 0x%
x
\n
"
,
name
,
handle
);
printf
(
"libsaproc DEBUG: pathmap_dlopen %s return 0x%
lx
\n
"
,
name
,
(
unsigned
long
)
handle
);
}
return
handle
;
}
...
...
@@ -661,30 +661,30 @@ init_classsharing_workaround(void *cd, const prmap_t* pmap, const char* obj_name
// read FileMapHeader
size_t
n
=
read
(
fd
,
pheader
,
sizeof
(
struct
FileMapHeader
));
if
(
n
!=
sizeof
(
struct
FileMapHeader
))
{
free
(
pheader
);
close
(
fd
);
char
errMsg
[
ERR_MSG_SIZE
];
sprintf
(
errMsg
,
"unable to read shared archive file map header from %s"
,
classes_jsa
);
close
(
fd
);
free
(
pheader
);
THROW_NEW_DEBUGGER_EXCEPTION_
(
errMsg
,
1
);
}
// check file magic
if
(
pheader
->
_magic
!=
0xf00baba2
)
{
free
(
pheader
);
close
(
fd
);
char
errMsg
[
ERR_MSG_SIZE
];
sprintf
(
errMsg
,
"%s has bad shared archive magic 0x%x, expecting 0xf00baba2"
,
classes_jsa
,
pheader
->
_magic
);
close
(
fd
);
free
(
pheader
);
THROW_NEW_DEBUGGER_EXCEPTION_
(
errMsg
,
1
);
}
// check version
if
(
pheader
->
_version
!=
CURRENT_ARCHIVE_VERSION
)
{
free
(
pheader
);
close
(
fd
);
char
errMsg
[
ERR_MSG_SIZE
];
sprintf
(
errMsg
,
"%s has wrong shared archive version %d, expecting %d"
,
classes_jsa
,
pheader
->
_version
,
CURRENT_ARCHIVE_VERSION
);
close
(
fd
);
free
(
pheader
);
THROW_NEW_DEBUGGER_EXCEPTION_
(
errMsg
,
1
);
}
...
...
make/hotspot_version
浏览文件 @
2740fd12
...
...
@@ -35,7 +35,7 @@ HOTSPOT_VM_COPYRIGHT=Copyright 2015
HS_MAJOR_VER=25
HS_MINOR_VER=60
HS_BUILD_NUMBER=0
5
HS_BUILD_NUMBER=0
6
JDK_MAJOR_VER=1
JDK_MINOR_VER=8
...
...
make/linux/makefiles/gcc.make
浏览文件 @
2740fd12
...
...
@@ -337,47 +337,41 @@ else
# Note: The Itanium gcc compiler crashes when using -gstabs.
DEBUG_CFLAGS/
ia64
=
-g
DEBUG_CFLAGS/
amd64
=
-g
DEBUG_CFLAGS/
arm
=
-g
DEBUG_CFLAGS/
ppc
=
-g
DEBUG_CFLAGS/
ppc64
=
-g
DEBUG_CFLAGS
+=
$
(
DEBUG_CFLAGS/
$(BUILDARCH)
)
ifeq
($(DEBUG_CFLAGS/$(BUILDARCH)),)
ifeq
($(USE_CLANG), true)
# Clang doesn't understand -gstabs
DEBUG_CFLAGS
+
=
-g
DEBUG_CFLAGS
/
$(BUILDARCH)
=
-g
else
DEBUG_CFLAGS
+
=
-gstabs
DEBUG_CFLAGS
/
$(BUILDARCH)
=
-gstabs
endif
endif
ifeq
($(ENABLE_FULL_DEBUG_SYMBOLS),1)
FASTDEBUG_CFLAGS/
ia64
=
-g
FASTDEBUG_CFLAGS/
amd64
=
-g
FASTDEBUG_CFLAGS/
arm
=
-g
FASTDEBUG_CFLAGS/
ppc
=
-g
FASTDEBUG_CFLAGS/
ppc64
=
-g
FASTDEBUG_CFLAGS
+=
$
(
DEBUG_CFLAGS/
$(BUILDARCH)
)
FASTDEBUG_CFLAGS
+=
$
(
FAST
DEBUG_CFLAGS/
$(BUILDARCH)
)
ifeq
($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
ifeq
($(USE_CLANG), true)
# Clang doesn't understand -gstabs
FASTDEBUG_CFLAGS
+
=
-g
FASTDEBUG_CFLAGS
/
$(BUILDARCH)
=
-g
else
FASTDEBUG_CFLAGS
+
=
-gstabs
FASTDEBUG_CFLAGS
/
$(BUILDARCH)
=
-gstabs
endif
endif
OPT_CFLAGS/
ia64
=
-g
OPT_CFLAGS/
amd64
=
-g
OPT_CFLAGS/
arm
=
-g
OPT_CFLAGS/
ppc
=
-g
OPT_CFLAGS/
ppc64
=
-g
OPT_CFLAGS
+=
$
(
OPT_CFLAGS/
$(BUILDARCH)
)
ifeq
($(OPT_CFLAGS/$(BUILDARCH)),)
ifeq
($(USE_CLANG), true)
# Clang doesn't understand -gstabs
OPT_CFLAGS
+
=
-g
OPT_CFLAGS
/
$(BUILDARCH)
=
-g
else
OPT_CFLAGS
+
=
-gstabs
OPT_CFLAGS
/
$(BUILDARCH)
=
-gstabs
endif
endif
endif
...
...
src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
浏览文件 @
2740fd12
...
...
@@ -6634,7 +6634,6 @@ void CMSCollector::reset(bool asynch) {
}
void
CMSCollector
::
do_CMS_operation
(
CMS_op_type
op
,
GCCause
::
Cause
gc_cause
)
{
gclog_or_tty
->
date_stamp
(
PrintGC
&&
PrintGCDateStamps
);
TraceCPUTime
tcpu
(
PrintGCDetails
,
true
,
gclog_or_tty
);
GCTraceTime
t
(
GCCauseString
(
"GC"
,
gc_cause
),
PrintGC
,
!
PrintGCDetails
,
NULL
,
_gc_tracer_cm
->
gc_id
());
TraceCollectorStats
tcs
(
counters
());
...
...
src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
浏览文件 @
2740fd12
...
...
@@ -1297,7 +1297,6 @@ bool G1CollectedHeap::do_collection(bool explicit_gc,
// Timing
assert
(
gc_cause
()
!=
GCCause
::
_java_lang_system_gc
||
explicit_gc
,
"invariant"
);
gclog_or_tty
->
date_stamp
(
G1Log
::
fine
()
&&
PrintGCDateStamps
);
TraceCPUTime
tcpu
(
G1Log
::
finer
(),
true
,
gclog_or_tty
);
{
...
...
src/share/vm/gc_implementation/g1/vm_operations_g1.cpp
浏览文件 @
2740fd12
...
...
@@ -230,7 +230,6 @@ void VM_CGC_Operation::release_and_notify_pending_list_lock() {
}
void
VM_CGC_Operation
::
doit
()
{
gclog_or_tty
->
date_stamp
(
G1Log
::
fine
()
&&
PrintGCDateStamps
);
TraceCPUTime
tcpu
(
G1Log
::
finer
(),
true
,
gclog_or_tty
);
GCTraceTime
t
(
_printGCMessage
,
G1Log
::
fine
(),
true
,
G1CollectedHeap
::
heap
()
->
gc_timer_cm
(),
G1CollectedHeap
::
heap
()
->
concurrent_mark
()
->
concurrent_gc_id
());
SharedHeap
*
sh
=
SharedHeap
::
heap
();
...
...
src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
浏览文件 @
2740fd12
...
...
@@ -167,7 +167,6 @@ bool PSMarkSweep::invoke_no_policy(bool clear_all_softrefs) {
{
HandleMark
hm
;
gclog_or_tty
->
date_stamp
(
PrintGC
&&
PrintGCDateStamps
);
TraceCPUTime
tcpu
(
PrintGCDetails
,
true
,
gclog_or_tty
);
GCTraceTime
t1
(
GCCauseString
(
"Full GC"
,
gc_cause
),
PrintGC
,
!
PrintGCDetails
,
NULL
,
_gc_tracer
->
gc_id
());
TraceCollectorStats
tcs
(
counters
());
...
...
src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
浏览文件 @
2740fd12
...
...
@@ -2054,7 +2054,6 @@ bool PSParallelCompact::invoke_no_policy(bool maximum_heap_compaction) {
gc_task_manager
()
->
task_idle_workers
();
heap
->
set_par_threads
(
gc_task_manager
()
->
active_workers
());
gclog_or_tty
->
date_stamp
(
PrintGC
&&
PrintGCDateStamps
);
TraceCPUTime
tcpu
(
PrintGCDetails
,
true
,
gclog_or_tty
);
GCTraceTime
t1
(
GCCauseString
(
"Full GC"
,
gc_cause
),
PrintGC
,
!
PrintGCDetails
,
NULL
,
_gc_tracer
.
gc_id
());
TraceCollectorStats
tcs
(
counters
());
...
...
src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp
浏览文件 @
2740fd12
...
...
@@ -329,7 +329,6 @@ bool PSScavenge::invoke_no_policy() {
ResourceMark
rm
;
HandleMark
hm
;
gclog_or_tty
->
date_stamp
(
PrintGC
&&
PrintGCDateStamps
);
TraceCPUTime
tcpu
(
PrintGCDetails
,
true
,
gclog_or_tty
);
GCTraceTime
t1
(
GCCauseString
(
"GC"
,
gc_cause
),
PrintGC
,
!
PrintGCDetails
,
NULL
,
_gc_tracer
.
gc_id
());
TraceCollectorStats
tcs
(
counters
());
...
...
src/share/vm/gc_implementation/shared/gcTraceTime.cpp
浏览文件 @
2740fd12
...
...
@@ -49,10 +49,8 @@ GCTraceTime::GCTraceTime(const char* title, bool doit, bool print_cr, GCTimer* t
}
if
(
_doit
)
{
if
(
PrintGCTimeStamps
)
{
gclog_or_tty
->
stamp
();
gclog_or_tty
->
print
(
": "
);
}
gclog_or_tty
->
date_stamp
(
PrintGCDateStamps
);
gclog_or_tty
->
stamp
(
PrintGCTimeStamps
);
if
(
PrintGCID
)
{
gclog_or_tty
->
print
(
"#%u: "
,
gc_id
.
id
());
}
...
...
src/share/vm/memory/genCollectedHeap.cpp
浏览文件 @
2740fd12
...
...
@@ -384,7 +384,6 @@ void GenCollectedHeap::do_collection(bool full,
bool
complete
=
full
&&
(
max_level
==
(
n_gens
()
-
1
));
const
char
*
gc_cause_prefix
=
complete
?
"Full GC"
:
"GC"
;
gclog_or_tty
->
date_stamp
(
PrintGC
&&
PrintGCDateStamps
);
TraceCPUTime
tcpu
(
PrintGCDetails
,
true
,
gclog_or_tty
);
// The PrintGCDetails logging starts before we have incremented the GC id. We will do that later
// so we can assume here that the next GC id is what we want.
...
...
src/share/vm/runtime/arguments.cpp
浏览文件 @
2740fd12
...
...
@@ -1572,7 +1572,7 @@ void Arguments::select_gc_ergonomically() {
void
Arguments
::
select_gc
()
{
if
(
!
gc_selected
())
{
ArgumentsExt
::
select_gc_ergonomically
();
select_gc_ergonomically
();
}
}
...
...
@@ -2067,7 +2067,7 @@ bool Arguments::verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_hea
}
// Check consistency of GC selection
bool
Arguments
::
check_gc_consistency
_user
()
{
bool
Arguments
::
check_gc_consistency
()
{
check_gclog_consistency
();
bool
status
=
true
;
// Ensure that the user has not selected conflicting sets
...
...
@@ -2233,7 +2233,7 @@ bool Arguments::check_vm_args_consistency() {
FLAG_SET_DEFAULT
(
UseGCOverheadLimit
,
false
);
}
status
=
status
&&
check_gc_consistency
_user
();
status
=
status
&&
check_gc_consistency
();
status
=
status
&&
check_stack_pages
();
if
(
CMSIncrementalMode
)
{
...
...
@@ -4006,7 +4006,7 @@ jint Arguments::apply_ergo() {
set_shared_spaces_flags
();
// Check the GC selections again.
if
(
!
ArgumentsExt
::
check_gc_consistency_ergo
())
{
if
(
!
check_gc_consistency
())
{
return
JNI_EINVAL
;
}
...
...
src/share/vm/runtime/arguments.hpp
浏览文件 @
2740fd12
...
...
@@ -466,8 +466,7 @@ class Arguments : AllStatic {
static
bool
verify_MaxHeapFreeRatio
(
FormatBuffer
<
80
>&
err_msg
,
uintx
max_heap_free_ratio
);
// Check for consistency in the selection of the garbage collector.
static
bool
check_gc_consistency_user
();
// Check user-selected gc
static
inline
bool
check_gc_consistency_ergo
();
// Check ergonomic-selected gc
static
bool
check_gc_consistency
();
// Check user-selected gc
static
void
check_deprecated_gcs
();
static
void
check_deprecated_gc_flags
();
// Check consistecy or otherwise of VM argument settings
...
...
@@ -615,8 +614,4 @@ bool Arguments::gc_selected() {
UseParNewGC
||
UseSerialGC
;
}
bool
Arguments
::
check_gc_consistency_ergo
()
{
return
check_gc_consistency_user
();
}
#endif // SHARE_VM_RUNTIME_ARGUMENTS_HPP
src/share/vm/runtime/arguments_ext.hpp
浏览文件 @
2740fd12
...
...
@@ -30,22 +30,12 @@
class
ArgumentsExt
:
AllStatic
{
public:
static
inline
void
select_gc_ergonomically
();
static
inline
void
set_gc_specific_flags
();
static
inline
bool
check_gc_consistency_ergo
();
static
void
process_options
(
const
JavaVMInitArgs
*
args
)
{}
};
void
ArgumentsExt
::
select_gc_ergonomically
()
{
Arguments
::
select_gc_ergonomically
();
}
void
ArgumentsExt
::
set_gc_specific_flags
()
{
Arguments
::
set_gc_specific_flags
();
}
bool
ArgumentsExt
::
check_gc_consistency_ergo
()
{
return
Arguments
::
check_gc_consistency_ergo
();
}
#endif // SHARE_VM_RUNTIME_ARGUMENTS_EXT_HPP
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录