< prev index next >
src/share/vm/utilities/bitMap.hpp
Print this page
rev 13101 : imported patch 8176571-fine-bitmaps-allocated-as-mtgc
@@ -350,14 +350,19 @@
// Don't allow copy or assignment, to prevent the
// allocated memory from leaking out to other instances.
CHeapBitMap(const CHeapBitMap&);
CHeapBitMap& operator=(const CHeapBitMap&);
+ // NMT memory type
+ MEMFLAGS _flags;
+
public:
- CHeapBitMap() : BitMap(NULL, 0) {}
+ CHeapBitMap() : BitMap(NULL, 0), _flags(mtInternal) {}
+ CHeapBitMap(MEMFLAGS flags) : BitMap(NULL, 0), _flags(flags) {}
// Clears the bitmap memory.
CHeapBitMap(idx_t size_in_bits);
+ CHeapBitMap(idx_t size_in_bits, MEMFLAGS flags);
~CHeapBitMap();
// Resize the backing bitmap memory.
//
// Old bits are transfered to the new memory
< prev index next >