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

Remove NarrowPtrStruct

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • hotspot
    • b17

      CompressedOops and CompressedKlassPointers both used to have a static data member of type NarrowPtrStruct (declared in compressedOops.hpp).

      When CompressedKlassPointers was split out into its own file (JDK-8311870), its use of NarrowPtrStruct was removed, hoisting the needed data members directly into CompressedKlassPointers, flattening its structure (and dropping an unused NarrowPtrStruct member for this use).

      That left CompressedOoops::_narrow_oop as the sole instance of NarrowPtrStruct. That extra level of structure doesn't provide any benefit, and we can flatten it out here too, rendering NarrowPtrStruct unused and allowing it to be removed.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: