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

Serial GC: Remove duplicate logic for detecting pointers in young gen

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • gc

      Checking whether a pointer is in the young generation of the serial collector is currently done by comparing the pointer to the end of the young generation reserved space. However, these checks are duplicated in various places, which complicates any changes to the layout of the young generation since all these locations would need to be updated. DefNewGeneration::is_in_reserved method should serve a the sole source of truth for whether a pointer is in the young generation.

            swesonga Saint Wesonga
            swesonga Saint Wesonga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: