8151439: Inline the BitMap constructor

Reviewed-by: tschatzl, pliden, kbarrett
This commit is contained in:
Stefan Karlsson 2016-03-09 12:44:49 +01:00
parent 7419b91e7e
commit 48813d4d84
2 changed files with 2 additions and 7 deletions

View File

@ -29,12 +29,7 @@
#include "utilities/bitMap.inline.hpp"
#include "utilities/copy.hpp"
BitMap::BitMap(bm_word_t* map, idx_t size_in_bits) :
_map(map), _size(size_in_bits)
{
assert(sizeof(bm_word_t) == BytesPerWord, "Implementation assumption.");
}
STATIC_ASSERT(sizeof(BitMap::bm_word_t) == BytesPerWord); // "Implementation assumption."
BitMap::BitMap(idx_t size_in_bits, bool in_resource_area) :
_map(NULL), _size(0)

View File

@ -116,7 +116,7 @@ class BitMap VALUE_OBJ_CLASS_SPEC {
BitMap() : _map(NULL), _size(0) {}
// Constructs a bitmap with the given map and size.
BitMap(bm_word_t* map, idx_t size_in_bits);
BitMap(bm_word_t* map, idx_t size_in_bits) :_map(map), _size(size_in_bits) {}
// Constructs an empty bitmap of the given size (that is, this clears the
// new bitmap). Allocates the map array in resource area if