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

Pre-generate ThreadHeapSampler::_log_table

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • hotspot
    • b23

      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.

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

              Created:
              Updated:
              Resolved: