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

x86: Redundant test+jump in C1 allocateArray

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: