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

Code heap page sizes not traced correctly using os::trace_page_sizes

XMLWordPrintable

    • b10

      The tracing of code heap page sizes is not always correct since the traced page sizes is "calculated" using both min and max size of the traced heap while the reservation only cares about the total size given by ReservedCodeCacheSize.

      The page sized used when creating the ReservedCodeSpace in CodeCache::reserve_heap_memory() will be the page size used by all heaps added into that reservation. So rather then re-calculating the page size in CodeHeap::reserve(), the passed in reserved space should be looked at. Currently this is a bit problematic since a ReservedSpace doesn't hold the page size, but we can check if it is special or not and that way know if it is using large pages or not.

            sjohanss Stefan Johansson
            sjohanss Stefan Johansson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: