-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panamize KQueue and EPoll selector implementations #22307
base: master
Are you sure you want to change the base?
Panamize KQueue and EPoll selector implementations #22307
Conversation
👋 Welcome back aefimov! A progress list of the required criteria for merging this PR into |
/contributor add dclarke |
❗ This change is not yet ready to be integrated. |
@AlekseiEfimov |
@AlekseiEfimov The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
try (Arena arena = Arena.ofConfined()) { | ||
MemorySegment epoll_eventMS = arena.allocate(epoll_event.layout()); | ||
|
||
epoll_event.events(epoll_eventMS, events); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a common pattern here;
- Create an Arena
- allocate a segment for errno
- do stuff
- depending on the returned int, do other stuff
- return a value (or throw)
Could we consolidate that logic in a reusable method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think thats a good idea, I'll look into it
It's so nice to say goodbye to the C files. |
* } | ||
*/ | ||
@SuppressWarnings("restricted") | ||
public class epoll_data { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These classes could be final
and have a private
constructor.
Description of the changes is under construction
Progress
Contributors
<dclarke@openjdk.org>
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22307/head:pull/22307
$ git checkout pull/22307
Update a local copy of the PR:
$ git checkout pull/22307
$ git pull https://git.openjdk.org/jdk.git pull/22307/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22307
View PR using the GUI difftool:
$ git pr show -t 22307
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22307.diff