Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
e3e5d641
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看板
提交
e3e5d641
编写于
7月 06, 2012
作者:
Z
zhouyx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7181353: Update error message to distinguish native OOM and java OOM in net
Reviewed-by: chegar
上级
5289ecdd
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
16 addition
and
16 deletion
+16
-16
src/solaris/native/java/net/Inet4AddressImpl.c
src/solaris/native/java/net/Inet4AddressImpl.c
+2
-2
src/solaris/native/java/net/Inet6AddressImpl.c
src/solaris/native/java/net/Inet6AddressImpl.c
+1
-1
src/solaris/native/java/net/NetworkInterface.c
src/solaris/native/java/net/NetworkInterface.c
+1
-1
src/solaris/native/java/net/PlainDatagramSocketImpl.c
src/solaris/native/java/net/PlainDatagramSocketImpl.c
+3
-3
src/windows/native/java/net/DualStackPlainDatagramSocketImpl.c
...indows/native/java/net/DualStackPlainDatagramSocketImpl.c
+2
-2
src/windows/native/java/net/Inet6AddressImpl.c
src/windows/native/java/net/Inet6AddressImpl.c
+1
-1
src/windows/native/java/net/NetworkInterface.c
src/windows/native/java/net/NetworkInterface.c
+2
-2
src/windows/native/java/net/TwoStacksPlainDatagramSocketImpl.c
...indows/native/java/net/TwoStacksPlainDatagramSocketImpl.c
+4
-4
未找到文件。
src/solaris/native/java/net/Inet4AddressImpl.c
浏览文件 @
e3e5d641
...
...
@@ -196,7 +196,7 @@ Java_java_net_Inet4AddressImpl_lookupAllHostAddr(JNIEnv *env, jobject this,
struct
addrinfo
*
next
=
(
struct
addrinfo
*
)
malloc
(
sizeof
(
struct
addrinfo
));
if
(
!
next
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Native
heap allocation failed"
);
ret
=
NULL
;
goto
cleanupAndReturn
;
}
...
...
@@ -465,7 +465,7 @@ Java_java_net_Inet4AddressImpl_lookupAllHostAddr(JNIEnv *env, jobject this,
struct
addrinfo
*
next
=
(
struct
addrinfo
*
)
malloc
(
sizeof
(
struct
addrinfo
));
if
(
!
next
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Native
heap allocation failed"
);
ret
=
NULL
;
goto
cleanupAndReturn
;
}
...
...
src/solaris/native/java/net/Inet6AddressImpl.c
浏览文件 @
e3e5d641
...
...
@@ -267,7 +267,7 @@ Java_java_net_Inet6AddressImpl_lookupAllHostAddr(JNIEnv *env, jobject this,
struct
addrinfo
*
next
=
(
struct
addrinfo
*
)
malloc
(
sizeof
(
struct
addrinfo
));
if
(
!
next
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Native
heap allocation failed"
);
ret
=
NULL
;
goto
cleanupAndReturn
;
}
...
...
src/solaris/native/java/net/NetworkInterface.c
浏览文件 @
e3e5d641
...
...
@@ -804,7 +804,7 @@ static netif *enumInterfaces(JNIEnv *env) {
do{ \
_pointer = (_type)malloc( _size ); \
if (_pointer == NULL) { \
JNU_ThrowOutOfMemoryError(env, "heap allocation failed"); \
JNU_ThrowOutOfMemoryError(env, "
Native
heap allocation failed"); \
return ifs;
/* return untouched list */
\
} \
} while(0)
...
...
src/solaris/native/java/net/PlainDatagramSocketImpl.c
浏览文件 @
e3e5d641
...
...
@@ -485,7 +485,7 @@ Java_java_net_PlainDatagramSocketImpl_send(JNIEnv *env, jobject this,
fullPacket
=
(
char
*
)
malloc
(
packetBufferLen
);
if
(
!
fullPacket
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Send buffer native
heap allocation failed"
);
return
;
}
else
{
mallocedPacket
=
JNI_TRUE
;
...
...
@@ -714,7 +714,7 @@ Java_java_net_PlainDatagramSocketImpl_peekData(JNIEnv *env, jobject this,
fullPacket
=
(
char
*
)
malloc
(
packetBufferLen
);
if
(
!
fullPacket
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Peek buffer native
heap allocation failed"
);
return
-
1
;
}
else
{
mallocedPacket
=
JNI_TRUE
;
...
...
@@ -874,7 +874,7 @@ Java_java_net_PlainDatagramSocketImpl_receive0(JNIEnv *env, jobject this,
fullPacket
=
(
char
*
)
malloc
(
packetBufferLen
);
if
(
!
fullPacket
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Receive buffer native
heap allocation failed"
);
return
;
}
else
{
mallocedPacket
=
JNI_TRUE
;
...
...
src/windows/native/java/net/DualStackPlainDatagramSocketImpl.c
浏览文件 @
e3e5d641
...
...
@@ -265,7 +265,7 @@ JNIEXPORT jint JNICALL Java_java_net_DualStackPlainDatagramSocketImpl_socketRece
}
fullPacket
=
(
char
*
)
malloc
(
packetBufferLen
);
if
(
!
fullPacket
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Native
heap allocation failed"
);
return
-
1
;
}
}
else
{
...
...
@@ -427,7 +427,7 @@ JNIEXPORT void JNICALL Java_java_net_DualStackPlainDatagramSocketImpl_socketSend
}
fullPacket
=
(
char
*
)
malloc
(
length
);
if
(
!
fullPacket
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Native
heap allocation failed"
);
return
;
}
}
else
{
...
...
src/windows/native/java/net/Inet6AddressImpl.c
浏览文件 @
e3e5d641
...
...
@@ -197,7 +197,7 @@ Java_java_net_Inet6AddressImpl_lookupAllHostAddr(JNIEnv *env, jobject this,
struct
addrinfo
*
next
=
(
struct
addrinfo
*
)
malloc
(
sizeof
(
struct
addrinfo
));
if
(
!
next
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Native
heap allocation failed"
);
ret
=
NULL
;
goto
cleanupAndReturn
;
}
...
...
src/windows/native/java/net/NetworkInterface.c
浏览文件 @
e3e5d641
...
...
@@ -270,7 +270,7 @@ int enumInterfaces(JNIEnv *env, netif **netifPP)
}
}
if
(
curr
==
NULL
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failure"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Native
heap allocation failure"
);
free_netif
(
netifP
);
free
(
tableP
);
return
-
1
;
...
...
@@ -370,7 +370,7 @@ int enumAddresses_win(JNIEnv *env, netif *netifP, netaddr **netaddrPP)
netaddr
*
curr
=
(
netaddr
*
)
malloc
(
sizeof
(
netaddr
));
if
(
curr
==
NULL
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failure"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Native
heap allocation failure"
);
free_netaddr
(
netaddrP
);
free
(
tableP
);
return
-
1
;
...
...
src/windows/native/java/net/TwoStacksPlainDatagramSocketImpl.c
浏览文件 @
e3e5d641
...
...
@@ -243,7 +243,7 @@ jboolean exceedSizeLimit(JNIEnv *env, jint fd, jint addr, jint size)
addrList
=
curr
;
}
LeaveCriticalSection
(
&
sizeCheckLock
);
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Native
heap allocation failed"
);
return
JNI_TRUE
;
}
curr
->
addr
=
htonl
((
*
addrp
)
->
S_un
.
S_addr
);
...
...
@@ -740,7 +740,7 @@ Java_java_net_TwoStacksPlainDatagramSocketImpl_send(JNIEnv *env, jobject this,
*/
fullPacket
=
(
char
*
)
malloc
(
packetBufferLen
);
if
(
!
fullPacket
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Send buf native
heap allocation failed"
);
return
;
}
}
else
{
...
...
@@ -1003,7 +1003,7 @@ Java_java_net_TwoStacksPlainDatagramSocketImpl_peekData(JNIEnv *env, jobject thi
*/
fullPacket
=
(
char
*
)
malloc
(
packetBufferLen
);
if
(
!
fullPacket
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Native
heap allocation failed"
);
return
-
1
;
}
}
else
{
...
...
@@ -1287,7 +1287,7 @@ Java_java_net_TwoStacksPlainDatagramSocketImpl_receive0(JNIEnv *env, jobject thi
*/
fullPacket
=
(
char
*
)
malloc
(
packetBufferLen
);
if
(
!
fullPacket
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"heap allocation failed"
);
JNU_ThrowOutOfMemoryError
(
env
,
"
Receive buf native
heap allocation failed"
);
return
;
}
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录