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

Memory reservation code should not care about allocation granularity for sizes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • None

      There are some places that says that sizes of the reserved memory needs to be allocation granularity aligned. There's no such requirement. It's the start address that needs to be allocation granularity aligned.

      Note, however, that if you reserve consecutive memory areas that the size naturally becomes aligned to the allocation granularity. Maybe that's where these comments / asserts come from?

      One example can be found in anon_mmap:
      // It must be a multiple of allocation granularity.

            Unassigned Unassigned
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: