Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/java.base/share/classes/sun/nio/ch/NativeThreadSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class NativeThreadSet {
* it can efficiently be removed later.
*/
int add() {
long th = NativeThread.currentNativeThread();
long th = NativeThread.current();
// 0 and -1 are treated as placeholders, not real thread handles
if (th == 0)
th = -1;
Expand Down Expand Up @@ -75,7 +75,7 @@ int add() {
*/
void remove(int i) {
synchronized (this) {
assert (elts[i] == NativeThread.currentNativeThread()) || (elts[i] == -1);
assert (elts[i] == NativeThread.current()) || (elts[i] == -1);
elts[i] = 0;
used--;
if (used == 0 && waitingToEmpty)
Expand Down