AArch64: Ignore BlockZeroingLowLimit when UseBlockZeroing is false

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 26
    • Component/s: hotspot
    • aarch64
    • linux

      By default, UseBlockZeroing is set to true and BlockZeroingLowLimit is initialized to 256. If DC ZVA is supported, BlockZeroingLowLimit is later updated to 4 * VM_Version::zva_length(). When UseBlockZeroing is set to false, all related conditional checks should ignore BlockZeroingLowLimit. However, the function MacroAssembler::zero_words(Register base, uint64_t cnt) still evaluates the lower limit and bases its code generation logic on it, which is incorrect.
      This change corrects that logic by ensuring BlockZeroingLowLimit is disregarded when UseBlockZeroing is disabled. As a result, it improves the code generation process’s efficiency, although it may not directly benefit the execution time.

            Assignee:
            Patrick Zhang
            Reporter:
            Patrick Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: