RFR [9]: 8034174 Remove use of JVM_* functions from java.net code
Alan Bateman
Alan.Bateman at oracle.com
Sat Feb 22 07:36:38 PST 2014
On 22/02/2014 14:03, Bernd Eckenfels wrote:
> Hm, I actually like to have that JVM_ abstraction layer. Looks like it is now replaced by NET_ in some parts, do we really want to remove it in others? (the JVM_IO_ERR beeing an obvious advantage)
>
Support for green threads went away when we moved to HotSpot back in JDK
1.3 and since then there hasn't been any need for socket and other
blocking operations to go through the JVM interface. The residual usage
in the classic networking code has been because of Solaris interruptible
I/O and that has been disabled by default since JDK 7. We removed the
use of the JVM_ functions in other parts of the platform in JDK 7 so
Chris's work is really just a continuation of this effort. Eventually it
should be possible to just remove these functions from the JVM interface
and this would be a welcome cleanup.
As regards a general porting/abstraction interface then it doesn't
exist. The Host Porting Layering (HPI) bit rotted a long time ago and
was eventually removed (several years ago). To date there hasn't been a
big need for a replacement. There is certainly work that could be done
to improve the portability in many areas, it just hasn't been a priority.
-Alan
More information about the net-dev
mailing list