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

investigate mapping the code cache with large pages on linux

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P5 P5
    • None
    • hs11
    • hotspot
    • None
    • generic
    • generic

      On linux the code cache cannot be mapped using large pages because linux shared memory does not allow executable permissions to be set. From the shmget man page:

             ...
             mode_flags (lowest 9 bits)
                         specifying the permissions granted to the owner, group,
                         and world. Presently, the execute permissions are not
                         used by the system.

      If/when linux shared mem supports execute permission, or if/when linux gets another method of obtaining large page memory, the JVM should map the code cache with large pages.

            Unassigned Unassigned
            jcoomes John Coomes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: