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

Pre-generate ThreadHeapSampler::_log_table

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 16
    • 16
    • hotspot
    • b23

    Description

      The static ThreadHeapSampler::_log_table is initialized on JVM bootstrap to an overhead of ~67k instructions. By utilizing constexpr, we can precalculate the helper table at compile time, which trades a runtime overhead for a small, 8kb, static footprint increase.

      Attachments

        Issue Links

          Activity

            People

              redestad Claes Redestad
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: