Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
a6b0d743
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看板
提交
a6b0d743
编写于
11月 03, 2014
作者:
A
amurillo
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
42ee0a91
081e5a79
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
27 addition
and
3 deletion
+27
-3
src/share/classes/sun/nio/ch/ServerSocketChannelImpl.java
src/share/classes/sun/nio/ch/ServerSocketChannelImpl.java
+13
-1
src/solaris/classes/sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java
...s/sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java
+14
-2
未找到文件。
src/share/classes/sun/nio/ch/ServerSocketChannelImpl.java
浏览文件 @
a6b0d743
...
...
@@ -247,7 +247,7 @@ class ServerSocketChannelImpl
return
null
;
thread
=
NativeThread
.
current
();
for
(;;)
{
n
=
accept
0
(
this
.
fd
,
newfd
,
isaa
);
n
=
accept
(
this
.
fd
,
newfd
,
isaa
);
if
((
n
==
IOStatus
.
INTERRUPTED
)
&&
isOpen
())
continue
;
break
;
...
...
@@ -410,6 +410,18 @@ class ServerSocketChannelImpl
return
sb
.
toString
();
}
/**
* Accept a connection on a socket.
*
* @implNote Wrap native call to allow instrumentation.
*/
private
int
accept
(
FileDescriptor
ssfd
,
FileDescriptor
newfd
,
InetSocketAddress
[]
isaa
)
throws
IOException
{
return
accept0
(
ssfd
,
newfd
,
isaa
);
}
// -- Native methods --
// Accepts a new connection, setting the given file descriptor to refer to
...
...
src/solaris/classes/sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java
浏览文件 @
a6b0d743
...
...
@@ -141,7 +141,7 @@ class UnixAsynchronousServerSocketChannelImpl
Throwable
exc
=
null
;
try
{
begin
();
int
n
=
accept
0
(
this
.
fd
,
newfd
,
isaa
);
int
n
=
accept
(
this
.
fd
,
newfd
,
isaa
);
// spurious wakeup, is this possible?
if
(
n
==
IOStatus
.
UNAVAILABLE
)
{
...
...
@@ -277,7 +277,7 @@ class UnixAsynchronousServerSocketChannelImpl
try
{
begin
();
int
n
=
accept
0
(
this
.
fd
,
newfd
,
isaa
);
int
n
=
accept
(
this
.
fd
,
newfd
,
isaa
);
if
(
n
==
IOStatus
.
UNAVAILABLE
)
{
// need calling context when there is security manager as
...
...
@@ -332,6 +332,18 @@ class UnixAsynchronousServerSocketChannelImpl
}
}
/**
* Accept a connection on a socket.
*
* @implNote Wrap native call to allow instrumentation.
*/
private
int
accept
(
FileDescriptor
ssfd
,
FileDescriptor
newfd
,
InetSocketAddress
[]
isaa
)
throws
IOException
{
return
accept0
(
ssfd
,
newfd
,
isaa
);
}
// -- Native methods --
private
static
native
void
initIDs
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录