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

Refactor InCSetState::is_in_cset_or_humongous

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc
    • b89

        InCSetState::is_in_cset_or_humongous unnecessarily depends on the structure of the InCSetState enum. That is, the function is hardcoded to check if _value != NotInCSet instead of doing the check is_in_cset() || is_humongous(). The motivation for this implementation was performance, but careful performance measurement shows no improvement of using _value != NotInCSet version compared to check_is_in_cset() || is_humongous().

              ehelin Erik Helin
              ehelin Erik Helin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: