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

MallocArrayAllocator::free should not take a length parameter

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • hotspot
    • None
    • b10

      Instead of using the NEW_C_HEAP_ARRAY macros, we could start to use the ArrayAllocator classes.

      However, unlike FREE_C_HEAP_ARRAY MallocArrayAllocator::free requires the length to be passed as an argument. This makes MallocArrayAllocator a bit more awkward to use.

            stefank Stefan Karlsson
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: