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
|
@ -460,6 +460,11 @@ final class VirtualThread extends BaseVirtualThread {
|
|||
private void afterYield() {
|
||||
assert carrierThread == null;
|
||||
|
||||
// re-adjust parallelism if the virtual thread yielded when compensating
|
||||
if (currentThread() instanceof CarrierThread ct) {
|
||||
ct.endBlocking();
|
||||
}
|
||||
|
||||
int s = state();
|
||||
|
||||
// LockSupport.park/parkNanos
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue