mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8329593: Drop adjustments to target parallelism when virtual threads do I/O on files opened for buffered I/O
Reviewed-by: bpb, jpai
This commit is contained in:
parent
b07e1531b3
commit
412e306d81
28 changed files with 461 additions and 870 deletions
|
@ -1216,11 +1216,11 @@ public sealed class InetAddress implements Serializable permits Inet4Address, In
|
|||
Objects.requireNonNull(policy);
|
||||
validate(host);
|
||||
InetAddress[] addrs;
|
||||
long comp = Blocker.begin();
|
||||
boolean attempted = Blocker.begin();
|
||||
try {
|
||||
addrs = impl.lookupAllHostAddr(host, policy);
|
||||
} finally {
|
||||
Blocker.end(comp);
|
||||
Blocker.end(attempted);
|
||||
}
|
||||
return Arrays.stream(addrs);
|
||||
}
|
||||
|
@ -1230,11 +1230,11 @@ public sealed class InetAddress implements Serializable permits Inet4Address, In
|
|||
if (addr.length != Inet4Address.INADDRSZ && addr.length != Inet6Address.INADDRSZ) {
|
||||
throw new IllegalArgumentException("Invalid address length");
|
||||
}
|
||||
long comp = Blocker.begin();
|
||||
boolean attempted = Blocker.begin();
|
||||
try {
|
||||
return impl.getHostByAddr(addr);
|
||||
} finally {
|
||||
Blocker.end(comp);
|
||||
Blocker.end(attempted);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue