CHeapBitMap(MEMFLAGS flags) constructor misleading use of super-constructor

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 23
    • Affects Version/s: None
    • Component/s: hotspot
    • None
    • b10

      The `explicit CHeapBitMap(MEMFLAGS flags)` calls the `GrowableBitMap(bm_word_t* map, idx_t size_in_bits)` super-constructor with `GrowableBitMap(0, false)`. This works because 0 gets converted to nullptr and false gets converted to 0. However this seems to have be a miss in the most recent refactoring and is misleading.

       `explicit CHeapBitMap(MEMFLAGS flags)' should use `GrowableBitMap()` directly which creates an empty bitmap.

            Assignee:
            Axel Boldt-Christmas
            Reporter:
            Axel Boldt-Christmas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: