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

Re-examine use of CodeBuffer::verify_section_allocation

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b27

      Description

      JDK-7104960 added product-enabled verification of CodeBuffer sections via verify_section_allocation, run when constructing, expanding and tearing down CodeBuffers. This has some measurable overhead, especially for routines like PhaseOutput::scratch_emit_size. About 200k instructions are executed on a Hello World in this verification.

      To reduce overhead, but retain most of the verification guarantees, we could consider making all calls debug-only, except the one in ~CodeBuffer.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              redestad Claes Redestad
              Reporter:
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: