The NetworkInterface class keeps the network interface name in RA-allocated memory. That introduces a dependency to where ResourceMarks can be placed and is not a good idea for data carrier structures that are handed up and down the stack. We ran into this when reviewing https://github.com/openjdk/jdk/pull/6885
I propose to use C-heap instead.
I propose to use C-heap instead.