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

Add alignment precondition to Universe::reserve_heap

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • None
    • hotspot
    • None
    • gc
    • master

      All callers of this method ensure that the heap size is properly aligned so the following align_up is redundant.

      size_t total_reserved = align_up(heap_size, alignment);

      Change to assert instead.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: