Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
ce6739da
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ce6739da
编写于
10月 27, 2017
作者:
R
robm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8180881: Better packaging of deserialization
Reviewed-by: chegar, acorn
上级
450b4b6e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
30 addition
and
13 deletion
+30
-13
make/mapfiles/libjava/mapfile-vers
make/mapfiles/libjava/mapfile-vers
+1
-1
src/share/classes/java/io/ObjectInputStream.java
src/share/classes/java/io/ObjectInputStream.java
+5
-4
src/share/classes/sun/misc/Launcher.java
src/share/classes/sun/misc/Launcher.java
+1
-2
src/share/classes/sun/misc/VM.java
src/share/classes/sun/misc/VM.java
+18
-3
src/share/classes/sun/rmi/server/MarshalInputStream.java
src/share/classes/sun/rmi/server/MarshalInputStream.java
+4
-2
src/share/native/sun/misc/VM.c
src/share/native/sun/misc/VM.c
+1
-1
未找到文件。
make/mapfiles/libjava/mapfile-vers
浏览文件 @
ce6739da
...
...
@@ -278,7 +278,7 @@ SUNWprivate_1.1 {
Java_sun_misc_Version_getJvmVersionInfo;
Java_sun_misc_Version_getJvmSpecialVersion;
Java_sun_misc_VM_getThreadStateValues;
Java_sun_misc_VM_latestUserDefinedLoader;
Java_sun_misc_VM_latestUserDefinedLoader
0
;
Java_sun_misc_VM_initialize;
Java_sun_misc_VMSupport_initAgentProperties;
Java_sun_misc_VMSupport_getVMTemporaryDirectory;
...
...
src/share/classes/java/io/ObjectInputStream.java
浏览文件 @
ce6739da
...
...
@@ -2329,10 +2329,11 @@ public class ObjectInputStream
int
ndoubles
);
/**
* Returns the first non-null class loader (not counting class loaders of
* generated reflection implementation classes) up the execution stack, or
* null if only code from the null class loader is on the stack. This
* method is also called via reflection by the following RMI-IIOP class:
* Returns first non-privileged class loader on the stack (excluding
* reflection generated frames) or the extension class loader if only
* class loaded by the boot class loader and extension class loader are
* found on the stack. This method is also called via reflection by the
* following RMI-IIOP class:
*
* com.sun.corba.se.internal.util.JDKClassLoader
*
...
...
src/share/classes/sun/misc/Launcher.java
浏览文件 @
ce6739da
...
...
@@ -128,8 +128,6 @@ public class Launcher {
*/
public
static
ExtClassLoader
getExtClassLoader
()
throws
IOException
{
final
File
[]
dirs
=
getExtDirs
();
try
{
// Prior implementations of this doPrivileged() block supplied
// aa synthesized ACC via a call to the private method
...
...
@@ -138,6 +136,7 @@ public class Launcher {
return
AccessController
.
doPrivileged
(
new
PrivilegedExceptionAction
<
ExtClassLoader
>()
{
public
ExtClassLoader
run
()
throws
IOException
{
final
File
[]
dirs
=
getExtDirs
();
int
len
=
dirs
.
length
;
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
MetaIndex
.
registerDirectory
(
dirs
[
i
]);
...
...
src/share/classes/sun/misc/VM.java
浏览文件 @
ce6739da
...
...
@@ -26,6 +26,8 @@
package
sun.misc
;
import
static
java
.
lang
.
Thread
.
State
.*;
import
java.io.IOException
;
import
java.security.AccessControlException
;
import
java.util.Properties
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -399,10 +401,23 @@ public class VM {
private
final
static
int
JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT
=
0x0020
;
/*
* Returns the first non-null class loader up the execution stack,
* or null if only code from the null class loader is on the stack.
* Returns first non-privileged class loader on the stack (excluding
* reflection generated frames) or the extension class loader if only
* class loaded by the boot class loader and extension class loader are
* found on the stack.
*/
public
static
native
ClassLoader
latestUserDefinedLoader
();
public
static
native
ClassLoader
latestUserDefinedLoader0
();
public
static
ClassLoader
latestUserDefinedLoader
()
{
ClassLoader
loader
=
latestUserDefinedLoader0
();
if
(
loader
!=
null
)
{
return
loader
;
}
try
{
return
Launcher
.
ExtClassLoader
.
getExtClassLoader
();
}
catch
(
IOException
e
)
{
return
null
;
}
}
static
{
initialize
();
...
...
src/share/classes/sun/rmi/server/MarshalInputStream.java
浏览文件 @
ce6739da
...
...
@@ -255,8 +255,10 @@ public class MarshalInputStream extends ObjectInputStream {
}
/*
* Returns the first non-null class loader up the execution stack, or null
* if only code from the null class loader is on the stack.
* Returns first non-privileged class loader on the stack (excluding
* reflection generated frames) or the extension class loader if only
* class loaded by the boot class loader and extension class loader are
* found on the stack.
*/
private
static
ClassLoader
latestUserDefinedLoader
()
{
return
sun
.
misc
.
VM
.
latestUserDefinedLoader
();
...
...
src/share/native/sun/misc/VM.c
浏览文件 @
ce6739da
...
...
@@ -112,7 +112,7 @@ Java_sun_misc_VM_getThreadStateValues(JNIEnv *env, jclass cls,
}
JNIEXPORT
jobject
JNICALL
Java_sun_misc_VM_latestUserDefinedLoader
(
JNIEnv
*
env
,
jclass
cls
)
{
Java_sun_misc_VM_latestUserDefinedLoader
0
(
JNIEnv
*
env
,
jclass
cls
)
{
return
JVM_LatestUserDefinedLoader
(
env
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录