Add alignment precondition to Universe::reserve_heap

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: None
    • Component/s: hotspot
    • gc
    • b09

      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.

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

              Created:
              Updated:
              Resolved: