Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
558d8d76
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看板
提交
558d8d76
编写于
2月 10, 2014
作者:
S
sla
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8033911: Simplify instrumentation of FileInputStream and RandomAccessFile
Reviewed-by: alanb, dsamersoff, jbachorik
上级
82ea0dd6
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
21 addition
and
9 deletion
+21
-9
make/mapfiles/libjava/mapfile-vers
make/mapfiles/libjava/mapfile-vers
+3
-3
src/share/classes/java/io/FileInputStream.java
src/share/classes/java/io/FileInputStream.java
+5
-1
src/share/classes/java/io/RandomAccessFile.java
src/share/classes/java/io/RandomAccessFile.java
+10
-2
src/share/native/java/io/FileInputStream.c
src/share/native/java/io/FileInputStream.c
+1
-1
src/share/native/java/io/RandomAccessFile.c
src/share/native/java/io/RandomAccessFile.c
+2
-2
未找到文件。
make/mapfiles/libjava/mapfile-vers
浏览文件 @
558d8d76
...
...
@@ -79,7 +79,7 @@ SUNWprivate_1.1 {
Java_java_io_FileInputStream_close0;
Java_java_io_FileInputStream_initIDs;
Java_java_io_FileInputStream_open;
Java_java_io_FileInputStream_read;
Java_java_io_FileInputStream_read
0
;
Java_java_io_FileInputStream_readBytes;
Java_java_io_FileInputStream_skip;
Java_java_io_FileOutputStream_close0;
...
...
@@ -98,11 +98,11 @@ SUNWprivate_1.1 {
Java_java_io_RandomAccessFile_initIDs;
Java_java_io_RandomAccessFile_length;
Java_java_io_RandomAccessFile_open;
Java_java_io_RandomAccessFile_read;
Java_java_io_RandomAccessFile_read
0
;
Java_java_io_RandomAccessFile_readBytes;
Java_java_io_RandomAccessFile_seek0;
Java_java_io_RandomAccessFile_setLength;
Java_java_io_RandomAccessFile_write;
Java_java_io_RandomAccessFile_write
0
;
Java_java_io_RandomAccessFile_writeBytes;
Java_java_io_UnixFileSystem_canonicalize0;
Java_java_io_UnixFileSystem_checkAccess;
...
...
src/share/classes/java/io/FileInputStream.java
浏览文件 @
558d8d76
...
...
@@ -186,7 +186,11 @@ class FileInputStream extends InputStream
* file is reached.
* @exception IOException if an I/O error occurs.
*/
public
native
int
read
()
throws
IOException
;
public
int
read
()
throws
IOException
{
return
read0
();
}
private
native
int
read0
()
throws
IOException
;
/**
* Reads a subarray as a sequence of bytes.
...
...
src/share/classes/java/io/RandomAccessFile.java
浏览文件 @
558d8d76
...
...
@@ -309,7 +309,11 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
* @exception IOException if an I/O error occurs. Not thrown if
* end-of-file has been reached.
*/
public
native
int
read
()
throws
IOException
;
public
int
read
()
throws
IOException
{
return
read0
();
}
private
native
int
read0
()
throws
IOException
;
/**
* Reads a sub array as a sequence of bytes.
...
...
@@ -457,7 +461,11 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
* @param b the {@code byte} to be written.
* @exception IOException if an I/O error occurs.
*/
public
native
void
write
(
int
b
)
throws
IOException
;
public
void
write
(
int
b
)
throws
IOException
{
write0
(
b
);
}
private
native
void
write0
(
int
b
)
throws
IOException
;
/**
* Writes a sub array as a sequence of bytes.
...
...
src/share/native/java/io/FileInputStream.c
浏览文件 @
558d8d76
...
...
@@ -62,7 +62,7 @@ Java_java_io_FileInputStream_open(JNIEnv *env, jobject this, jstring path) {
}
JNIEXPORT
jint
JNICALL
Java_java_io_FileInputStream_read
(
JNIEnv
*
env
,
jobject
this
)
{
Java_java_io_FileInputStream_read
0
(
JNIEnv
*
env
,
jobject
this
)
{
return
readSingle
(
env
,
this
,
fis_fd
);
}
...
...
src/share/native/java/io/RandomAccessFile.c
浏览文件 @
558d8d76
...
...
@@ -64,7 +64,7 @@ Java_java_io_RandomAccessFile_open(JNIEnv *env,
}
JNIEXPORT
jint
JNICALL
Java_java_io_RandomAccessFile_read
(
JNIEnv
*
env
,
jobject
this
)
{
Java_java_io_RandomAccessFile_read
0
(
JNIEnv
*
env
,
jobject
this
)
{
return
readSingle
(
env
,
this
,
raf_fd
);
}
...
...
@@ -75,7 +75,7 @@ Java_java_io_RandomAccessFile_readBytes(JNIEnv *env,
}
JNIEXPORT
void
JNICALL
Java_java_io_RandomAccessFile_write
(
JNIEnv
*
env
,
jobject
this
,
jint
byte
)
{
Java_java_io_RandomAccessFile_write
0
(
JNIEnv
*
env
,
jobject
this
,
jint
byte
)
{
writeSingle
(
env
,
this
,
byte
,
JNI_FALSE
,
raf_fd
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录