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

Parallel: Use ordinary klass accessor in verify_filler_in_dense_prefix

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • hotspot
    • gc
    • b24

      In `PSParallelCompact::verify_filler_in_dense_prefix`, we verify all dead space is filled with special fillers, with their corresponding klass. The ordinary klass accessor API is `klass()`. There is another variant, `klass_without_asserts`, which is used in contexts where it's dangerous to access the klass.
      In this context, klass must be one of special filler klasses, so one can use the ordinary version.

      Change to the ordinary version to streamline the logic in this method.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: