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

Allow dynamically choosing the MEMFLAGS of a type without ResourceObj

XMLWordPrintable

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

      CHeapObj currently requires a template to specify which flags an object should be allocated with. This makes sense for most objects, but not utilities like GrowableArray our outputStream.

      Instead these classes must, unnecessarily, be ResourceObjs.

      Suggest a third way of doing things, without the cost of ResourceObjs (24 bytes of allocated space for each instance, for example).

            jsjolen Johan Sjölen
            jsjolen Johan Sjölen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: