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

Re-examine use of CodeBuffer::verify_section_allocation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 11, 16
    • hotspot
    • b27

      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.

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

              Created:
              Updated:
              Resolved: