mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8282726: java/net/vthread/BlockingSocketOps.java timeout/hang intermittently on Windows
Reviewed-by: djelinski
This commit is contained in:
parent
923207073a
commit
21a59b9f4e
8 changed files with 31 additions and 33 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -56,8 +56,11 @@ class KQueuePoller extends Poller {
|
|||
}
|
||||
|
||||
@Override
|
||||
void implDeregister(int fdVal) {
|
||||
KQueue.register(kqfd, fdVal, filter, EV_DELETE);
|
||||
void implDeregister(int fdVal, boolean polled) {
|
||||
// event was deleted if already polled
|
||||
if (!polled) {
|
||||
KQueue.register(kqfd, fdVal, filter, EV_DELETE);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue