Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8027231

Remove -XX:+PageAlignDirectMemory reference in the Enhancements in Java I/O doc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u51
    • 7, 7u25
    • docs
    • b10
    • linux
    • Not verified

        FULL PRODUCT VERSION :
        java version " 1.7.0_25 "
        Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
        Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)


        FULL OS VERSION :
        Linux pierohd111.ds.redbeemedia.net 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux


        A DESCRIPTION OF THE PROBLEM :
        According to:
        http://docs.oracle.com/javase/7/docs/technotes/guides/io/enhancements.html
        the Java 7 runtime should accept the option -XX:+PageAlignDirectMemory. This should revert the behaviour for allocating " direct " ByteBuffers (using ByteBuffer.allocateDirect()) so that the allocated memory is aligned to page boundary.

        Instead, when you run the command:

        java -XX:+PageAlignDirectMemory

        It gives the response:

        Unrecognized VM option 'PageAlignDirectMemory'
        Error: Could not create the Java Virtual Machine.
        Error: A fatal exception has occurred. Program will exit.


        THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Yes

        THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Run the command:

        java -XX:+PageAlignDirectMemory

        It gives the response:

        Unrecognized VM option 'PageAlignDirectMemory'

        REPRODUCIBILITY :
        This bug can be reproduced always.

              jgordon Joni Gordon (Inactive)
              mcastegr Mattis Castegren (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: