RFR - 8142872: Remove support for sun.nio.ch.PollSelectorProvider from 9

Kenji Kazumura kzr at jp.fujitsu.com
Thu Mar 24 05:04:47 UTC 2016


Hello,

>From the performance point of view, we need still PollSelectorProvider.
In our research, the score of SPECjbb2015-MultiJVM with PollSelectorProvider
is higher over a few dozen percent than with DevPollSelectorProvider.

I have discussed with some Solaris OS engineers about
the difference of poll(2) and /dev/poll.
They told me that both of them are needed because
the use-case is different for each other.

So Java programmers also would like to use both
for the different situations.

Please do not remove PollSelectorProvider from 9


-Kenji Kazumura



In message <5658A681.5080903 at oracle.com>
   RFR - 8142872: Remove support for sun.nio.ch.PollSelectorProvider from 9
   Alan.Bateman at oracle.com (Alan Bateman) wrote:

> On 27/11/2015 18:37, Rob McKenna wrote:
>> Hi folks,
>>
>> From time to time we get bugs on PollSelectorProvider despite 
>> recommending people use alternative implementations. The only way it 
>> can be used is setting the following system property:
>>
>> -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider
>>
>> Superior SelectorProvider implementations exist for all Oracle JDK 
>> platforms and PollSelectorProvider should not be used on those 
>> platforms if at all possible. That being the case we'd like to pull it 
>> from the default build:
>>
>> http://cr.openjdk.java.net/~robm/8076282/
> So in summary, leave the code in jdk repo for those that might want to 
> use it for porting purposes but exclude it from Linux/Solaris/OSX 
> builds. That seems reasonable to me as this SelectorProvider is not 
> interesting/useful on these platforms anymore.
> 
> -Alan.
> 


More information about the nio-dev mailing list