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

x86: Redundant test+jump in C1 allocateArray

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 20
    • hotspot
    • b26
    • x86

    Description

      In `C1_MacroAssembler::initialize_body()` we test the input array length for 0. We do this again in `MacroAssembler::zero_memory()`.

      `MacroAssembler::zero_memory()` is only ever called from `C1_MacroAssembler::initialize_body()`.

      We can eliminate one test+jump.

      Attachments

        Issue Links

          Activity

            People

              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: