8266369: (se) Add wepoll based Selector

Reviewed-by: chegar, michaelm, vtewari, dfuchs, bpb
This commit is contained in:
Alan Bateman 2021-05-08 07:14:36 +00:00
parent ff77ca8bd4
commit be4f25b0c8
23 changed files with 3234 additions and 102 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2021, 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
@ -679,6 +679,10 @@ public class Net {
*/
static native int sendOOB(FileDescriptor fd, byte data) throws IOException;
/**
* Read and discard urgent data (MSG_OOB) on the socket.
*/
static native boolean discardOOB(FileDescriptor fd) throws IOException;
// -- Multicast support --

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2021, 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
@ -25,6 +25,7 @@
package sun.nio.ch;
import java.io.FileDescriptor;
import java.lang.invoke.ConstantBootstraps;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
@ -74,6 +75,10 @@ public final class SelectionKeyImpl
throw new CancelledKeyException();
}
FileDescriptor getFD() {
return channel.getFD();
}
int getFDVal() {
return channel.getFDVal();
}