RFR JDK-8225474: JDI connector accept fails "Address already in use" with concurrent listeners
Alan Bateman
Alan.Bateman at oracle.com
Fri Jun 14 16:06:09 UTC 2019
On 14/06/2019 15:52, Andrew Leonard wrote:
> In doing the recent changes I applied knowledge of how the
> ConnectorImpl and its defaultArguments are used to decide on what is
> necessary from a threading perspective. I also am only considering the
> "listening" concurrency issue, at this stage, and was not considering
> making all the jdi classes thread-safe.
Sure but default arguments exposed in the ListeningConnector API are
mutable. It may be that debuggers and other tools aren't changing them
but we can't say that the GenericListeningConnector and its
implementations are safe for by use by concurrent threads without
studying this further. Also the comments about changing fields to final
are not optimizations, that are suggestions to allow
GenericListeningConnector objects be safely published.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20190614/0214070e/attachment-0001.html>
More information about the serviceability-dev
mailing list