Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
e77fb43b
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
3
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看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e77fb43b
编写于
4月 02, 2009
作者:
A
alanb
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6824135: (ch) test/java/nio/channels/AsyncCloseAndInterrupt.java fails (lnx)
Reviewed-by: sherman
上级
7082d981
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
29 addition
and
15 deletion
+29
-15
src/share/classes/sun/nio/ch/FileChannelImpl.java
src/share/classes/sun/nio/ch/FileChannelImpl.java
+28
-14
test/java/nio/channels/AsyncCloseAndInterrupt.java
test/java/nio/channels/AsyncCloseAndInterrupt.java
+1
-1
未找到文件。
src/share/classes/sun/nio/ch/FileChannelImpl.java
浏览文件 @
e77fb43b
...
...
@@ -128,9 +128,10 @@ public class FileChannelImpl
throw
new
NonReadableChannelException
();
synchronized
(
positionLock
)
{
int
n
=
0
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
0
;
do
{
...
...
@@ -151,9 +152,10 @@ public class FileChannelImpl
throw
new
NonReadableChannelException
();
synchronized
(
positionLock
)
{
long
n
=
0
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
0
;
do
{
...
...
@@ -183,9 +185,10 @@ public class FileChannelImpl
throw
new
NonWritableChannelException
();
synchronized
(
positionLock
)
{
int
n
=
0
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
0
;
do
{
...
...
@@ -206,9 +209,10 @@ public class FileChannelImpl
throw
new
NonWritableChannelException
();
synchronized
(
positionLock
)
{
long
n
=
0
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
0
;
do
{
...
...
@@ -239,9 +243,10 @@ public class FileChannelImpl
ensureOpen
();
synchronized
(
positionLock
)
{
long
p
=
-
1
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
0
;
do
{
...
...
@@ -262,9 +267,10 @@ public class FileChannelImpl
throw
new
IllegalArgumentException
();
synchronized
(
positionLock
)
{
long
p
=
-
1
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
null
;
do
{
...
...
@@ -283,9 +289,10 @@ public class FileChannelImpl
ensureOpen
();
synchronized
(
positionLock
)
{
long
s
=
-
1
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
-
1
;
do
{
...
...
@@ -311,9 +318,10 @@ public class FileChannelImpl
synchronized
(
positionLock
)
{
int
rv
=
-
1
;
long
p
=
-
1
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
null
;
...
...
@@ -350,9 +358,10 @@ public class FileChannelImpl
public
void
force
(
boolean
metaData
)
throws
IOException
{
ensureOpen
();
int
rv
=
-
1
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
;
do
{
...
...
@@ -406,9 +415,10 @@ public class FileChannelImpl
return
IOStatus
.
UNSUPPORTED
;
long
n
=
-
1
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
-
1
;
do
{
...
...
@@ -612,9 +622,10 @@ public class FileChannelImpl
throw
new
NonReadableChannelException
();
ensureOpen
();
int
n
=
0
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
-
1
;
do
{
...
...
@@ -637,9 +648,10 @@ public class FileChannelImpl
throw
new
NonWritableChannelException
();
ensureOpen
();
int
n
=
0
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
-
1
;
do
{
...
...
@@ -731,9 +743,10 @@ public class FileChannelImpl
throw
new
NonReadableChannelException
();
long
addr
=
-
1
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
null
;
if
(
size
()
<
position
+
size
)
{
// Extend file size
...
...
@@ -900,9 +913,10 @@ public class FileChannelImpl
FileLockTable
flt
=
fileLockTable
();
flt
.
add
(
fli
);
boolean
i
=
true
;
int
ti
=
threads
.
add
()
;
int
ti
=
-
1
;
try
{
begin
();
ti
=
threads
.
add
();
if
(!
isOpen
())
return
null
;
int
result
=
nd
.
lock
(
fd
,
true
,
position
,
size
,
shared
);
...
...
test/java/nio/channels/AsyncCloseAndInterrupt.java
浏览文件 @
e77fb43b
...
...
@@ -22,7 +22,7 @@
*/
/* @test
* @bug 4460583 4470470 4840199 6419424 6710579 6596323
* @bug 4460583 4470470 4840199 6419424 6710579 6596323
6824135
* @summary Comprehensive test of asynchronous closing and interruption
* @author Mark Reinhold
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录