8236582: (fc) FileChannel.map fails with InternalError when security manager enabled

Chris Hegarty chris.hegarty at oracle.com
Wed Jan 8 12:20:10 UTC 2020


Brian,

> On 7 Jan 2020, at 19:35, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
> 
> ...
> 
> So modified: http://cr.openjdk.java.net/~bpb/8236582/webrev.02/ <http://cr.openjdk.java.net/~bpb/8236582/webrev.02/>.

The source changes look good.

The test should be run in othervm mode, since it depends on triggering
the loading of ExtendedMapMode when a security manager is present -
which is not guaranteed to be the case as the test stands. For example,
the test passes ( without the fix ) when I run it with all the other
tests in test/jdk/java/nio/channels/FileChannel/ and `-conc:1 -agentvm`
- since ExtendedMapMode is loaded from a previous test run in the same
agent.

  * @run main/othervm MapWithSecurityManager

-Chris.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20200108/d5851b6b/attachment.htm>


More information about the nio-dev mailing list