Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
0edcfd0b
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看板
提交
0edcfd0b
编写于
8月 16, 2016
作者:
A
asaha
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
6d0adddb
0a48af63
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
31 addition
and
12 deletion
+31
-12
.hgtags
.hgtags
+1
-0
src/share/vm/prims/jvm.cpp
src/share/vm/prims/jvm.cpp
+13
-2
src/share/vm/runtime/deoptimization.cpp
src/share/vm/runtime/deoptimization.cpp
+0
-4
src/share/vm/runtime/java.cpp
src/share/vm/runtime/java.cpp
+17
-6
未找到文件。
.hgtags
浏览文件 @
0edcfd0b
...
...
@@ -904,6 +904,7 @@ e4525db272634b980738003eff99ac1588bb79d3 jdk8u111-b05
019b22dd8128840ecdcd1bfebcf4447e28e45068 jdk8u111-b06
3f337aaf090769653ee0a746fbe661d09055a883 jdk8u111-b07
e180e364a40364a059a20c74b97ab4e928e2b676 jdk8u111-b08
c48b303692bb86c42e928da6dec815e901a24c5b jdk8u111-b09
b09a69142dd3bf78ca66bb0c99046ca7cccbdda9 jdk8u112-b00
cf1faa9100dd8c8df6e1a604aaf613d037f51ebf jdk8u112-b01
f22b5be95347c669a1463d9e05ec3bf11420208e jdk8u112-b02
...
...
src/share/vm/prims/jvm.cpp
浏览文件 @
0edcfd0b
/*
* Copyright (c) 1997, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
6
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -2872,7 +2872,18 @@ ATTRIBUTE_PRINTF(3, 0)
int
jio_vsnprintf
(
char
*
str
,
size_t
count
,
const
char
*
fmt
,
va_list
args
)
{
// see bug 4399518, 4417214
if
((
intptr_t
)
count
<=
0
)
return
-
1
;
return
vsnprintf
(
str
,
count
,
fmt
,
args
);
int
result
=
vsnprintf
(
str
,
count
,
fmt
,
args
);
// Note: on truncation vsnprintf(3) on Unix returns number of
// characters which would have been written had the buffer been large
// enough; on Windows, it returns -1. We handle both cases here and
// always return -1, and perform null termination.
if
((
result
>
0
&&
(
size_t
)
result
>=
count
)
||
result
==
-
1
)
{
str
[
count
-
1
]
=
'\0'
;
result
=
-
1
;
}
return
result
;
}
ATTRIBUTE_PRINTF
(
3
,
0
)
...
...
src/share/vm/runtime/deoptimization.cpp
浏览文件 @
0edcfd0b
...
...
@@ -1881,8 +1881,6 @@ const char* Deoptimization::format_trap_state(char* buf, size_t buflen,
trap_reason_name
(
reason
),
recomp_flag
?
" recompiled"
:
""
);
}
if
(
len
>=
buflen
)
buf
[
buflen
-
1
]
=
'\0'
;
return
buf
;
}
...
...
@@ -1952,8 +1950,6 @@ const char* Deoptimization::format_trap_request(char* buf, size_t buflen,
len
=
jio_snprintf
(
buf
,
buflen
,
"reason='%s' action='%s' index='%d'"
,
reason
,
action
,
unloaded_class_index
);
}
if
(
len
>=
buflen
)
buf
[
buflen
-
1
]
=
'\0'
;
return
buf
;
}
...
...
src/share/vm/runtime/java.cpp
浏览文件 @
0edcfd0b
/*
* Copyright (c) 1997, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
6
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -773,25 +773,36 @@ int JDK_Version::compare(const JDK_Version& other) const {
}
void
JDK_Version
::
to_string
(
char
*
buffer
,
size_t
buflen
)
const
{
assert
(
buffer
&&
buflen
>
0
,
"call with useful buffer"
);
size_t
index
=
0
;
if
(
!
is_valid
())
{
jio_snprintf
(
buffer
,
buflen
,
"%s"
,
"(uninitialized)"
);
}
else
if
(
is_partially_initialized
())
{
jio_snprintf
(
buffer
,
buflen
,
"%s"
,
"(uninitialized) pre-1.6.0"
);
}
else
{
in
dex
+
=
jio_snprintf
(
in
t
rc
=
jio_snprintf
(
&
buffer
[
index
],
buflen
-
index
,
"%d.%d"
,
_major
,
_minor
);
if
(
rc
==
-
1
)
return
;
index
+=
rc
;
if
(
_micro
>
0
)
{
index
+=
jio_snprintf
(
&
buffer
[
index
],
buflen
-
index
,
".%d"
,
_micro
);
rc
=
jio_snprintf
(
&
buffer
[
index
],
buflen
-
index
,
".%d"
,
_micro
);
if
(
rc
==
-
1
)
return
;
index
+=
rc
;
}
if
(
_update
>
0
)
{
index
+=
jio_snprintf
(
&
buffer
[
index
],
buflen
-
index
,
"_%02d"
,
_update
);
rc
=
jio_snprintf
(
&
buffer
[
index
],
buflen
-
index
,
"_%02d"
,
_update
);
if
(
rc
==
-
1
)
return
;
index
+=
rc
;
}
if
(
_special
>
0
)
{
index
+=
jio_snprintf
(
&
buffer
[
index
],
buflen
-
index
,
"%c"
,
_special
);
rc
=
jio_snprintf
(
&
buffer
[
index
],
buflen
-
index
,
"%c"
,
_special
);
if
(
rc
==
-
1
)
return
;
index
+=
rc
;
}
if
(
_build
>
0
)
{
index
+=
jio_snprintf
(
&
buffer
[
index
],
buflen
-
index
,
"-b%02d"
,
_build
);
rc
=
jio_snprintf
(
&
buffer
[
index
],
buflen
-
index
,
"-b%02d"
,
_build
);
if
(
rc
==
-
1
)
return
;
index
+=
rc
;
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录