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

AArch64: Ignore BlockZeroingLowLimit when UseBlockZeroing is false

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 26
    • 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.

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

              Created:
              Updated: