RFR: 8266369: (se) Add wepoll based Selector [v4]
Alan Bateman
alanb at openjdk.java.net
Thu May 6 13:27:58 UTC 2021
On Wed, 5 May 2021 15:25:55 GMT, Chris Hegarty <chegar at openjdk.org> wrote:
>> Alan Bateman has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Remove unused WEPoll.getDescriptor. Update micro to close listener
>
> src/java.base/windows/classes/sun/nio/ch/WEPoll.java line 78:
>
>> 76: static long allocatePollArray(int count) {
>> 77: return UNSAFE.allocateMemory(count * SIZEOF_EPOLLEVENT);
>> 78: }
>
> I expected to see the memory cleared here, e.g.:
>
> long base = UNSAFE.allocateMemory(count * SIZEOF_EPOLLEVENT);
> UNSAFE.setMemory(base, count * SIZEOF_EPOLLEVENT, (byte) 0);
> return base;
Okay, will do, although isn't really needed here.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3816
More information about the nio-dev
mailing list