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

Card table clearing during commit significantly slows down VM startup

XMLWordPrintable

    • gc

      Since the clean card value for the card table is defined as 0xff, all collectors using card table need to reset its values to that value.

      This is an implicit pre-touch of all the memory of the card table, which slows down startup.

      The reason why this value has been selected is (apparently) to reduce the barrier code: many architectures have zero-valued registers, so when dirtying (setting to zero) the barrier code does not need to load the dirty card value (0x00) into a register.

      Evaluate the costs of changing this, or find another method to avoid touching these cards during startup.

            Unassigned Unassigned
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: