Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
a0a4dbca
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看板
提交
a0a4dbca
编写于
12月 17, 2014
作者:
L
lana
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
3f9194e4
d4edadba
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
263 addition
and
72 deletion
+263
-72
make/mapfiles/libnet/mapfile-vers
make/mapfiles/libnet/mapfile-vers
+2
-0
src/share/classes/sun/nio/ch/FileChannelImpl.java
src/share/classes/sun/nio/ch/FileChannelImpl.java
+57
-24
src/share/classes/sun/nio/ch/FileDispatcher.java
src/share/classes/sun/nio/ch/FileDispatcher.java
+7
-1
src/share/classes/sun/nio/ch/Net.java
src/share/classes/sun/nio/ch/Net.java
+49
-27
src/share/native/java/net/net_util.h
src/share/native/java/net/net_util.h
+4
-0
src/solaris/classes/sun/nio/ch/FileDispatcherImpl.java
src/solaris/classes/sun/nio/ch/FileDispatcherImpl.java
+11
-3
src/solaris/native/java/net/net_util_md.c
src/solaris/native/java/net/net_util_md.c
+5
-0
src/solaris/native/sun/nio/ch/FileChannelImpl.c
src/solaris/native/sun/nio/ch/FileChannelImpl.c
+5
-2
src/solaris/native/sun/nio/ch/Net.c
src/solaris/native/sun/nio/ch/Net.c
+1
-1
src/windows/classes/sun/nio/ch/FileDispatcherImpl.java
src/windows/classes/sun/nio/ch/FileDispatcherImpl.java
+37
-6
src/windows/native/java/net/net_util_md.c
src/windows/native/java/net/net_util_md.c
+22
-0
src/windows/native/sun/nio/ch/FileChannelImpl.c
src/windows/native/sun/nio/ch/FileChannelImpl.c
+40
-3
src/windows/native/sun/nio/ch/Net.c
src/windows/native/sun/nio/ch/Net.c
+15
-1
test/com/sun/corba/5036554/TestCorbaBug.sh
test/com/sun/corba/5036554/TestCorbaBug.sh
+2
-2
test/com/sun/corba/cachedSocket/7056731.sh
test/com/sun/corba/cachedSocket/7056731.sh
+2
-2
test/java/nio/channels/AsynchronousSocketChannel/StressLoopback.java
...io/channels/AsynchronousSocketChannel/StressLoopback.java
+2
-0
test/java/nio/channels/FileChannel/TransferToChannel.java
test/java/nio/channels/FileChannel/TransferToChannel.java
+2
-0
未找到文件。
make/mapfiles/libnet/mapfile-vers
浏览文件 @
a0a4dbca
...
...
@@ -110,6 +110,8 @@ SUNWprivate_1.1 {
NET_Bind;
NET_MapSocketOption;
NET_Wait;
NET_EnableFastTcpLoopback;
NET_ThrowNew;
ipv6_available;
local:
...
...
src/share/classes/sun/nio/ch/FileChannelImpl.java
浏览文件 @
a0a4dbca
...
...
@@ -38,6 +38,7 @@ import java.nio.channels.NonReadableChannelException;
import
java.nio.channels.NonWritableChannelException
;
import
java.nio.channels.OverlappingFileLockException
;
import
java.nio.channels.ReadableByteChannel
;
import
java.nio.channels.SelectableChannel
;
import
java.nio.channels.WritableByteChannel
;
import
java.security.AccessController
;
import
java.util.ArrayList
;
...
...
@@ -407,30 +408,13 @@ public class FileChannelImpl
//
private
static
volatile
boolean
fileSupported
=
true
;
private
long
transferToDirectly
(
long
position
,
int
icount
,
WritableByteChannel
target
)
private
long
transferToDirectlyInternal
(
long
position
,
int
icount
,
WritableByteChannel
target
,
FileDescriptor
targetFD
)
throws
IOException
{
if
(!
transferSupported
)
return
IOStatus
.
UNSUPPORTED
;
FileDescriptor
targetFD
=
null
;
if
(
target
instanceof
FileChannelImpl
)
{
if
(!
fileSupported
)
return
IOStatus
.
UNSUPPORTED_CASE
;
targetFD
=
((
FileChannelImpl
)
target
).
fd
;
}
else
if
(
target
instanceof
SelChImpl
)
{
// Direct transfer to pipe causes EINVAL on some configurations
if
((
target
instanceof
SinkChannelImpl
)
&&
!
pipeSupported
)
return
IOStatus
.
UNSUPPORTED_CASE
;
targetFD
=
((
SelChImpl
)
target
).
getFD
();
}
if
(
targetFD
==
null
)
return
IOStatus
.
UNSUPPORTED
;
int
thisFDVal
=
IOUtil
.
fdVal
(
fd
);
int
targetFDVal
=
IOUtil
.
fdVal
(
targetFD
);
if
(
thisFDVal
==
targetFDVal
)
// Not supported on some configurations
return
IOStatus
.
UNSUPPORTED
;
assert
!
nd
.
transferToDirectlyNeedsPositionLock
()
||
Thread
.
holdsLock
(
positionLock
);
long
n
=
-
1
;
int
ti
=
-
1
;
...
...
@@ -440,7 +424,7 @@ public class FileChannelImpl
if
(!
isOpen
())
return
-
1
;
do
{
n
=
transferTo0
(
thisFDVal
,
position
,
icount
,
targetFDVal
);
n
=
transferTo0
(
fd
,
position
,
icount
,
targetFD
);
}
while
((
n
==
IOStatus
.
INTERRUPTED
)
&&
isOpen
());
if
(
n
==
IOStatus
.
UNSUPPORTED_CASE
)
{
if
(
target
instanceof
SinkChannelImpl
)
...
...
@@ -461,6 +445,54 @@ public class FileChannelImpl
}
}
private
long
transferToDirectly
(
long
position
,
int
icount
,
WritableByteChannel
target
)
throws
IOException
{
if
(!
transferSupported
)
return
IOStatus
.
UNSUPPORTED
;
FileDescriptor
targetFD
=
null
;
if
(
target
instanceof
FileChannelImpl
)
{
if
(!
fileSupported
)
return
IOStatus
.
UNSUPPORTED_CASE
;
targetFD
=
((
FileChannelImpl
)
target
).
fd
;
}
else
if
(
target
instanceof
SelChImpl
)
{
// Direct transfer to pipe causes EINVAL on some configurations
if
((
target
instanceof
SinkChannelImpl
)
&&
!
pipeSupported
)
return
IOStatus
.
UNSUPPORTED_CASE
;
// Platform-specific restrictions. Now there is only one:
// Direct transfer to non-blocking channel could be forbidden
SelectableChannel
sc
=
(
SelectableChannel
)
target
;
if
(!
nd
.
canTransferToDirectly
(
sc
))
return
IOStatus
.
UNSUPPORTED_CASE
;
targetFD
=
((
SelChImpl
)
target
).
getFD
();
}
if
(
targetFD
==
null
)
return
IOStatus
.
UNSUPPORTED
;
int
thisFDVal
=
IOUtil
.
fdVal
(
fd
);
int
targetFDVal
=
IOUtil
.
fdVal
(
targetFD
);
if
(
thisFDVal
==
targetFDVal
)
// Not supported on some configurations
return
IOStatus
.
UNSUPPORTED
;
if
(
nd
.
transferToDirectlyNeedsPositionLock
())
{
synchronized
(
positionLock
)
{
long
pos
=
position
();
try
{
return
transferToDirectlyInternal
(
position
,
icount
,
target
,
targetFD
);
}
finally
{
position
(
pos
);
}
}
}
else
{
return
transferToDirectlyInternal
(
position
,
icount
,
target
,
targetFD
);
}
}
// Maximum size to map when using a mapped buffer
private
static
final
long
MAPPED_TRANSFER_SIZE
=
8L
*
1024L
*
1024L
;
...
...
@@ -1176,7 +1208,8 @@ public class FileChannelImpl
private
static
native
int
unmap0
(
long
address
,
long
length
);
// Transfers from src to dst, or returns -2 if kernel can't do that
private
native
long
transferTo0
(
int
src
,
long
position
,
long
count
,
int
dst
);
private
native
long
transferTo0
(
FileDescriptor
src
,
long
position
,
long
count
,
FileDescriptor
dst
);
// Sets or reports this file's position
// If offset is -1, the current position is returned
...
...
src/share/classes/sun/nio/ch/FileDispatcher.java
浏览文件 @
a0a4dbca
...
...
@@ -25,7 +25,9 @@
package
sun.nio.ch
;
import
java.io.*
;
import
java.io.FileDescriptor
;
import
java.io.IOException
;
import
java.nio.channels.SelectableChannel
;
abstract
class
FileDispatcher
extends
NativeDispatcher
{
...
...
@@ -53,4 +55,8 @@ abstract class FileDispatcher extends NativeDispatcher {
*/
abstract
FileDescriptor
duplicateForMapping
(
FileDescriptor
fd
)
throws
IOException
;
abstract
boolean
canTransferToDirectly
(
SelectableChannel
sc
);
abstract
boolean
transferToDirectlyNeedsPositionLock
();
}
src/share/classes/sun/nio/ch/Net.java
浏览文件 @
a0a4dbca
...
...
@@ -50,30 +50,8 @@ public class Net {
// set to true if exclusive binding is on for Windows
private
static
final
boolean
exclusiveBind
;
static
{
int
availLevel
=
isExclusiveBindAvailable
();
if
(
availLevel
>=
0
)
{
String
exclBindProp
=
java
.
security
.
AccessController
.
doPrivileged
(
new
PrivilegedAction
<
String
>()
{
@Override
public
String
run
()
{
return
System
.
getProperty
(
"sun.net.useExclusiveBind"
);
}
});
if
(
exclBindProp
!=
null
)
{
exclusiveBind
=
exclBindProp
.
length
()
==
0
?
true
:
Boolean
.
parseBoolean
(
exclBindProp
);
}
else
if
(
availLevel
==
1
)
{
exclusiveBind
=
true
;
}
else
{
exclusiveBind
=
false
;
}
}
else
{
exclusiveBind
=
false
;
}
}
// set to true if the fast tcp loopback should be enabled on Windows
private
static
final
boolean
fastLoopback
;
// -- Miscellaneous utilities --
...
...
@@ -391,6 +369,23 @@ public class Net {
}
}
public
static
boolean
isFastTcpLoopbackRequested
()
{
String
loopbackProp
=
java
.
security
.
AccessController
.
doPrivileged
(
new
PrivilegedAction
<
String
>()
{
@Override
public
String
run
()
{
return
System
.
getProperty
(
"jdk.net.useFastTcpLoopback"
);
}
});
boolean
enable
;
if
(
""
.
equals
(
loopbackProp
))
{
enable
=
true
;
}
else
{
enable
=
Boolean
.
parseBoolean
(
loopbackProp
);
}
return
enable
;
}
// -- Socket operations --
private
static
native
boolean
isIPv6Available0
();
...
...
@@ -413,15 +408,16 @@ public class Net {
throws
IOException
{
boolean
preferIPv6
=
isIPv6Available
()
&&
(
family
!=
StandardProtocolFamily
.
INET
);
return
IOUtil
.
newFD
(
socket0
(
preferIPv6
,
stream
,
false
));
return
IOUtil
.
newFD
(
socket0
(
preferIPv6
,
stream
,
false
,
fastLoopback
));
}
static
FileDescriptor
serverSocket
(
boolean
stream
)
{
return
IOUtil
.
newFD
(
socket0
(
isIPv6Available
(),
stream
,
true
));
return
IOUtil
.
newFD
(
socket0
(
isIPv6Available
(),
stream
,
true
,
fastLoopback
));
}
// Due to oddities SO_REUSEADDR on windows reuse is ignored
private
static
native
int
socket0
(
boolean
preferIPv6
,
boolean
stream
,
boolean
reuse
);
private
static
native
int
socket0
(
boolean
preferIPv6
,
boolean
stream
,
boolean
reuse
,
boolean
fastLoopback
);
public
static
void
bind
(
FileDescriptor
fd
,
InetAddress
addr
,
int
port
)
throws
IOException
...
...
@@ -634,4 +630,30 @@ public class Net {
POLLCONN
=
pollconnValue
();
}
static
{
int
availLevel
=
isExclusiveBindAvailable
();
if
(
availLevel
>=
0
)
{
String
exclBindProp
=
java
.
security
.
AccessController
.
doPrivileged
(
new
PrivilegedAction
<
String
>()
{
@Override
public
String
run
()
{
return
System
.
getProperty
(
"sun.net.useExclusiveBind"
);
}
});
if
(
exclBindProp
!=
null
)
{
exclusiveBind
=
exclBindProp
.
length
()
==
0
?
true
:
Boolean
.
parseBoolean
(
exclBindProp
);
}
else
if
(
availLevel
==
1
)
{
exclusiveBind
=
true
;
}
else
{
exclusiveBind
=
false
;
}
}
else
{
exclusiveBind
=
false
;
}
fastLoopback
=
isFastTcpLoopbackRequested
();
}
}
src/share/native/java/net/net_util.h
浏览文件 @
a0a4dbca
...
...
@@ -182,9 +182,13 @@ NET_MapSocketOption(jint cmd, int *level, int *optname);
JNIEXPORT
int
JNICALL
NET_MapSocketOptionV6
(
jint
cmd
,
int
*
level
,
int
*
optname
);
JNIEXPORT
jint
JNICALL
NET_EnableFastTcpLoopback
(
int
fd
);
int
getScopeID
(
struct
sockaddr
*
);
int
cmpScopeID
(
unsigned
int
,
struct
sockaddr
*
);
unsigned
short
in_cksum
(
unsigned
short
*
addr
,
int
len
);
#endif
/* NET_UTILS_H */
src/solaris/classes/sun/nio/ch/FileDispatcherImpl.java
浏览文件 @
a0a4dbca
...
...
@@ -25,10 +25,10 @@
package
sun.nio.ch
;
import
java.io.*
;
import
java.io.FileDescriptor
;
import
java.io.IOException
;
class
FileDispatcherImpl
extends
FileDispatcher
{
class
FileDispatcherImpl
extends
FileDispatcher
{
static
{
IOUtil
.
load
();
...
...
@@ -108,6 +108,14 @@ class FileDispatcherImpl extends FileDispatcher
return
new
FileDescriptor
();
}
boolean
canTransferToDirectly
(
java
.
nio
.
channels
.
SelectableChannel
sc
)
{
return
true
;
}
boolean
transferToDirectlyNeedsPositionLock
()
{
return
false
;
}
// -- Native methods --
static
native
int
read0
(
FileDescriptor
fd
,
long
address
,
int
len
)
...
...
src/solaris/native/java/net/net_util_md.c
浏览文件 @
a0a4dbca
...
...
@@ -777,6 +777,11 @@ void parseExclusiveBindProperty(JNIEnv *env) {
#endif
}
JNIEXPORT
jint
JNICALL
NET_EnableFastTcpLoopback
(
int
fd
)
{
return
0
;
}
/* In the case of an IPv4 Inetaddress this method will return an
* IPv4 mapped address where IPv6 is available and v4MappedAddress is TRUE.
* Otherwise it will return a sockaddr_in structure for an IPv4 InetAddress.
...
...
src/solaris/native/sun/nio/ch/FileChannelImpl.c
浏览文件 @
a0a4dbca
...
...
@@ -154,10 +154,13 @@ Java_sun_nio_ch_FileChannelImpl_close0(JNIEnv *env, jobject this, jobject fdo)
JNIEXPORT
jlong
JNICALL
Java_sun_nio_ch_FileChannelImpl_transferTo0
(
JNIEnv
*
env
,
jobject
this
,
j
int
srcFD
,
j
object
srcFDO
,
jlong
position
,
jlong
count
,
j
int
dstFD
)
j
object
dstFDO
)
{
jint
srcFD
=
fdval
(
env
,
srcFDO
);
jint
dstFD
=
fdval
(
env
,
dstFDO
);
#if defined(__linux__)
off64_t
offset
=
(
off64_t
)
position
;
jlong
n
=
sendfile64
(
dstFD
,
srcFD
,
&
offset
,
(
size_t
)
count
);
...
...
src/solaris/native/sun/nio/ch/Net.c
浏览文件 @
a0a4dbca
...
...
@@ -231,7 +231,7 @@ Java_sun_nio_ch_Net_canJoin6WithIPv4Group0(JNIEnv* env, jclass cl)
JNIEXPORT
int
JNICALL
Java_sun_nio_ch_Net_socket0
(
JNIEnv
*
env
,
jclass
cl
,
jboolean
preferIPv6
,
jboolean
stream
,
jboolean
reuse
)
jboolean
stream
,
jboolean
reuse
,
jboolean
ignored
)
{
int
fd
;
int
type
=
(
stream
?
SOCK_STREAM
:
SOCK_DGRAM
);
...
...
src/windows/classes/sun/nio/ch/FileDispatcherImpl.java
浏览文件 @
a0a4dbca
...
...
@@ -25,15 +25,16 @@
package
sun.nio.ch
;
import
java.io.*
;
import
java.io.FileDescriptor
;
import
java.io.IOException
;
import
java.security.PrivilegedAction
;
import
sun.misc.SharedSecrets
;
import
sun.misc.JavaIOFileDescriptorAccess
;
class
FileDispatcherImpl
extends
FileDispatcher
{
static
{
IOUtil
.
load
();
}
class
FileDispatcherImpl
extends
FileDispatcher
{
// set to true if fast file transmission (TransmitFile) is enabled
private
static
final
boolean
fastFileTransfer
;
/**
* Indicates if the dispatcher should first advance the file position
...
...
@@ -120,6 +121,36 @@ class FileDispatcherImpl extends FileDispatcher
return
result
;
}
boolean
canTransferToDirectly
(
java
.
nio
.
channels
.
SelectableChannel
sc
)
{
return
fastFileTransfer
&&
sc
.
isBlocking
();
}
boolean
transferToDirectlyNeedsPositionLock
()
{
return
true
;
}
static
boolean
isFastFileTransferRequested
()
{
String
fileTransferProp
=
java
.
security
.
AccessController
.
doPrivileged
(
new
PrivilegedAction
<
String
>()
{
@Override
public
String
run
()
{
return
System
.
getProperty
(
"jdk.net.enableFastFileTransfer"
);
}
});
boolean
enable
;
if
(
""
.
equals
(
fileTransferProp
))
{
enable
=
true
;
}
else
{
enable
=
Boolean
.
parseBoolean
(
fileTransferProp
);
}
return
enable
;
}
static
{
IOUtil
.
load
();
fastFileTransfer
=
isFastFileTransferRequested
();
}
//-- Native methods
static
native
int
read0
(
FileDescriptor
fd
,
long
address
,
int
len
)
...
...
src/windows/native/java/net/net_util_md.c
浏览文件 @
a0a4dbca
...
...
@@ -29,6 +29,9 @@
#include "net_util.h"
#include "jni.h"
// Taken from mstcpip.h in Windows SDK 8.0 or newer.
#define SIO_LOOPBACK_FAST_PATH _WSAIOW(IOC_VENDOR,16)
#ifndef IPTOS_TOS_MASK
#define IPTOS_TOS_MASK 0x1e
#endif
...
...
@@ -844,6 +847,25 @@ jint getDefaultIPv6Interface(JNIEnv *env, struct SOCKADDR_IN6 *target_addr)
}
}
/**
* Enables SIO_LOOPBACK_FAST_PATH
*/
JNIEXPORT
jint
JNICALL
NET_EnableFastTcpLoopback
(
int
fd
)
{
int
enabled
=
1
;
DWORD
result_byte_count
=
-
1
;
int
result
=
WSAIoctl
(
fd
,
SIO_LOOPBACK_FAST_PATH
,
&
enabled
,
sizeof
(
enabled
),
NULL
,
0
,
&
result_byte_count
,
NULL
,
NULL
);
return
result
==
SOCKET_ERROR
?
WSAGetLastError
()
:
0
;
}
/* If address types is IPv6, then IPv6 must be available. Otherwise
* no address can be generated. In the case of an IPv4 Inetaddress this
* method will return an IPv4 mapped address where IPv6 is available and
...
...
src/windows/native/sun/nio/ch/FileChannelImpl.c
浏览文件 @
a0a4dbca
...
...
@@ -31,6 +31,10 @@
#include "nio.h"
#include "nio_util.h"
#include "sun_nio_ch_FileChannelImpl.h"
#include "java_lang_Integer.h"
#include <Mswsock.h>
#pragma comment(lib, "Mswsock.lib")
static
jfieldID
chan_fd
;
/* id for jobject 'fd' in java.io.FileChannel */
...
...
@@ -174,9 +178,42 @@ Java_sun_nio_ch_FileChannelImpl_close0(JNIEnv *env, jobject this, jobject fdo)
JNIEXPORT
jlong
JNICALL
Java_sun_nio_ch_FileChannelImpl_transferTo0
(
JNIEnv
*
env
,
jobject
this
,
j
in
t
srcFD
,
j
objec
t
srcFD
,
jlong
position
,
jlong
count
,
j
in
t
dstFD
)
j
objec
t
dstFD
)
{
return
IOS_UNSUPPORTED
;
const
int
PACKET_SIZE
=
524288
;
HANDLE
src
=
(
HANDLE
)(
handleval
(
env
,
srcFD
));
SOCKET
dst
=
(
SOCKET
)(
fdval
(
env
,
dstFD
));
DWORD
chunkSize
=
(
count
>
java_lang_Integer_MAX_VALUE
)
?
java_lang_Integer_MAX_VALUE
:
(
DWORD
)
count
;
BOOL
result
=
0
;
jlong
pos
=
Java_sun_nio_ch_FileChannelImpl_position0
(
env
,
this
,
srcFD
,
position
);
if
(
pos
==
IOS_THROWN
)
{
return
IOS_THROWN
;
}
result
=
TransmitFile
(
dst
,
src
,
chunkSize
,
PACKET_SIZE
,
NULL
,
NULL
,
TF_USE_KERNEL_APC
);
if
(
!
result
)
{
int
error
=
WSAGetLastError
();
if
(
WSAEINVAL
==
error
&&
count
>=
0
)
{
return
IOS_UNSUPPORTED_CASE
;
}
if
(
WSAENOTSOCK
==
error
)
{
return
IOS_UNSUPPORTED_CASE
;
}
JNU_ThrowIOExceptionWithLastError
(
env
,
"transfer failed"
);
return
IOS_THROWN
;
}
return
chunkSize
;
}
src/windows/native/sun/nio/ch/Net.c
浏览文件 @
a0a4dbca
...
...
@@ -127,7 +127,7 @@ Java_sun_nio_ch_Net_canJoin6WithIPv4Group0(JNIEnv* env, jclass cl)
JNIEXPORT
jint
JNICALL
Java_sun_nio_ch_Net_socket0
(
JNIEnv
*
env
,
jclass
cl
,
jboolean
preferIPv6
,
jboolean
stream
,
jboolean
reuse
)
jboolean
stream
,
jboolean
reuse
,
jboolean
fastLoopback
)
{
SOCKET
s
;
int
domain
=
(
preferIPv6
)
?
AF_INET6
:
AF_INET
;
...
...
@@ -152,6 +152,20 @@ Java_sun_nio_ch_Net_socket0(JNIEnv *env, jclass cl, jboolean preferIPv6,
NET_ThrowNew
(
env
,
WSAGetLastError
(),
"socket"
);
}
if
(
stream
&&
fastLoopback
)
{
static
int
loopback_available
=
1
;
if
(
loopback_available
)
{
int
rv
=
NET_EnableFastTcpLoopback
((
jint
)
s
);
if
(
rv
)
{
if
(
rv
==
WSAEOPNOTSUPP
)
{
loopback_available
=
0
;
}
else
{
NET_ThrowNew
(
env
,
rv
,
"fastLoopback"
);
}
}
}
}
return
(
jint
)
s
;
}
...
...
test/com/sun/corba/5036554/TestCorbaBug.sh
浏览文件 @
a0a4dbca
...
...
@@ -75,13 +75,13 @@ ${TESTJAVA}${FS}bin${FS}java -version
mkdir
bug
cp
${
TESTSRC
}${
FS
}
bug.idl
.
${
TEST
JAVA
}${
FS
}
bin
${
FS
}
idlj bug.idl
${
COMPILE
JAVA
}${
FS
}
bin
${
FS
}
idlj bug.idl
cp
${
TESTSRC
}${
FS
}
JavaBug.java bug
chmod
-fR
777 bug
${
TEST
JAVA
}${
FS
}
bin
${
FS
}
javac
-d
.
bug
${
FS
}*
.java
${
COMPILE
JAVA
}${
FS
}
bin
${
FS
}
javac
-d
.
bug
${
FS
}*
.java
${
TESTJAVA
}${
FS
}
bin
${
FS
}
java
-cp
.
bug/JavaBug
>
test.out 2>&1
...
...
test/com/sun/corba/cachedSocket/7056731.sh
浏览文件 @
a0a4dbca
...
...
@@ -55,8 +55,8 @@ PORT=1052
cp
-r
${
TESTSRC
}${
FS
}*
.java
${
TESTSRC
}${
FS
}
Hello.idl
.
echo
"Testing...please wait"
${
TEST
JAVA
}${
FS
}
bin
${
FS
}
idlj
-fall
Hello.idl
${
TEST
JAVA
}${
FS
}
bin
${
FS
}
javac
*
.java HelloApp/
*
.java
${
COMPILE
JAVA
}${
FS
}
bin
${
FS
}
idlj
-fall
Hello.idl
${
COMPILE
JAVA
}${
FS
}
bin
${
FS
}
javac
*
.java HelloApp/
*
.java
echo
"starting orbd"
${
TESTJAVA
}${
FS
}
bin
${
FS
}
orbd
-ORBInitialPort
$PORT
-ORBInitialHost
localhost &
...
...
test/java/nio/channels/AsynchronousSocketChannel/StressLoopback.java
浏览文件 @
a0a4dbca
...
...
@@ -24,6 +24,8 @@
/* @test
* @bug 6834246 6842687
* @summary Stress test connections through the loopback interface
* @run main StressLoopback
* @run main/othervm -Djdk.net.useFastTcpLoopback StressLoopback
*/
import
java.nio.ByteBuffer
;
...
...
test/java/nio/channels/FileChannel/TransferToChannel.java
浏览文件 @
a0a4dbca
...
...
@@ -24,6 +24,8 @@
/* @test
* @bug 4652496
* @summary Test transferTo with different target channels
* @run main TransferToChannel
* @run main/othervm -Djdk.net.enableFastFileTransfer TransferToChannel
*/
import
java.nio.channels.FileChannel
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录