Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
c95c0d97
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看板
提交
c95c0d97
编写于
6月 10, 2015
作者:
S
simonis
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8081674: EmptyStackException at startup if running with extended or unsupported charset
Reviewed-by: mchung, alanb
上级
faa67858
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
9 addition
and
10 deletion
+9
-10
make/mapfiles/libjava/mapfile-vers
make/mapfiles/libjava/mapfile-vers
+2
-2
src/share/classes/java/lang/ClassLoader.java
src/share/classes/java/lang/ClassLoader.java
+4
-3
src/share/native/java/lang/ClassLoader.c
src/share/native/java/lang/ClassLoader.c
+3
-5
未找到文件。
make/mapfiles/libjava/mapfile-vers
浏览文件 @
c95c0d97
#
# Copyright (c) 1997, 201
4
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1997, 201
5
, 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
...
...
@@ -128,12 +128,12 @@ SUNWprivate_1.1 {
Java_java_lang_ClassLoader_defineClass0;
Java_java_lang_ClassLoader_defineClass1;
Java_java_lang_ClassLoader_defineClass2;
Java_java_lang_ClassLoader_findBuiltinLib;
Java_java_lang_ClassLoader_findLoadedClass0;
Java_java_lang_ClassLoader_resolveClass0;
Java_java_lang_ClassLoader_00024NativeLibrary_find;
Java_java_lang_ClassLoader_00024NativeLibrary_load;
Java_java_lang_ClassLoader_00024NativeLibrary_unload;
Java_java_lang_ClassLoader_00024NativeLibrary_findBuiltinLib;
Java_java_lang_ClassLoader_registerNatives;
Java_java_lang_Compiler_registerNatives;
Java_java_lang_Double_longBitsToDouble;
...
...
src/share/classes/java/lang/ClassLoader.java
浏览文件 @
c95c0d97
/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013,
2015,
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
...
...
@@ -1724,7 +1724,6 @@ public abstract class ClassLoader {
native
long
find
(
String
name
);
native
void
unload
(
String
name
,
boolean
isBuiltin
);
static
native
String
findBuiltinLib
(
String
name
);
public
NativeLibrary
(
Class
<?>
fromClass
,
String
name
,
boolean
isBuiltin
)
{
this
.
name
=
name
;
...
...
@@ -1865,9 +1864,11 @@ public abstract class ClassLoader {
throw
new
UnsatisfiedLinkError
(
"no "
+
name
+
" in java.library.path"
);
}
private
static
native
String
findBuiltinLib
(
String
name
);
private
static
boolean
loadLibrary0
(
Class
<?>
fromClass
,
final
File
file
)
{
// Check to see if we're attempting to access a static library
String
name
=
NativeLibrary
.
findBuiltinLib
(
file
.
getName
());
String
name
=
findBuiltinLib
(
file
.
getName
());
boolean
isBuiltin
=
(
name
!=
null
);
if
(!
isBuiltin
)
{
boolean
exists
=
AccessController
.
doPrivileged
(
...
...
src/share/native/java/lang/ClassLoader.c
浏览文件 @
c95c0d97
/*
* Copyright (c) 1996, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
5
, 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
...
...
@@ -493,12 +493,12 @@ Java_java_lang_ClassLoader_00024NativeLibrary_find
return
res
;
}
/*
* Class: java_lang_ClassLoader
_NativeLibrary
* Class: java_lang_ClassLoader
* Method: findBuiltinLib
* Signature: (Ljava/lang/String;)Ljava/lang/String;
*/
JNIEXPORT
jstring
JNICALL
Java_java_lang_ClassLoader_
00024NativeLibrary_
findBuiltinLib
Java_java_lang_ClassLoader_findBuiltinLib
(
JNIEnv
*
env
,
jclass
cls
,
jstring
name
)
{
const
char
*
cname
;
...
...
@@ -514,8 +514,6 @@ Java_java_lang_ClassLoader_00024NativeLibrary_findBuiltinLib
JNU_ThrowInternalError
(
env
,
"NULL filename for native library"
);
return
NULL
;
}
// Can't call initIDs because it will recurse into NativeLibrary via
// FindClass to check context so set prochandle here as well.
procHandle
=
getProcessHandle
();
cname
=
JNU_GetStringPlatformChars
(
env
,
name
,
0
);
if
(
cname
==
NULL
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录