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

OopStorage should derive from CHeapObjBase

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • None
    • gc
    • b19

      OopStorage provides `operator new` taking a MEMFLAGS argument, so the allocation of the storage object can be specified according to the owning subsystem. This goes along with the MEMFLAGS constructor argument.

      Now that we have CHeapObjBase we can make OopStorage derived from it to provide the `operator new` with MEMFLAGS argument.

      That derivation will also provide an appropriate `operator delete`; the `operator delete` with MEMFLAGS argument currently defined by OopStorage is a mistake.

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

              Created:
              Updated:
              Resolved: