< prev index next >
src/hotspot/share/memory/filemap.cpp
Print this page
rev 58059 : imported patch 8238999-memregion-custom-operator
@@ -1745,11 +1745,14 @@
}
}
bool FileMapInfo::map_heap_data(MemRegion **heap_mem, int first,
int max, int* num, bool is_open_archive) {
- MemRegion * regions = new MemRegion[max];
+ MemRegion* regions = NEW_C_HEAP_ARRAY(MemRegion, max, mtInternal);
+ for (int i = 0; i < max; i++) {
+ ::new (®ions[i]) MemRegion();
+ }
FileMapRegion* si;
int region_num = 0;
for (int i = first;
i < first + max; i++) {
< prev index next >