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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7, 7u25
    • Fix Version/s: 7u51
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b10
    • OS:
      linux
    • Verification:
      Not verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Due:
                  Created:
                  Updated:
                  Resolved: