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

Serial: Use more concrete type for TenuredGeneration::_the_space

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • hotspot
    • gc
    • b05

      ```
      class TenuredGeneration: public Generation {
        ContiguousSpace* _the_space; // Actual space holding objects
      }


        _the_space = new TenuredSpace(_bts, MemRegion(bottom, end));
      ```

      `_the_space` can be its actual type, instead of its super type. Besides, it's logical that `TenuredGeneration` holds a pointer to `TenuredSpace`.

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

              Created:
              Updated:
              Resolved: