Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8252223: ZGC: Convert ZPage to use delegating constructor
Reviewed-by: pliden, sjohanss, kbarrett
  • Loading branch information
stefank committed Aug 27, 2020
1 parent a9298a0 commit 75a8c715f9fd163d77472ff3d1f649a934a3b6a6
Showing 1 changed file with 1 addition and 10 deletions.
@@ -30,16 +30,7 @@
#include "utilities/debug.hpp"

ZPage::ZPage(const ZVirtualMemory& vmem, const ZPhysicalMemory& pmem) :
_type(type_from_size(vmem.size())),
_numa_id((uint8_t)-1),
_seqnum(0),
_virtual(vmem),
_top(start()),
_livemap(object_max_count()),
_last_used(0),
_physical(pmem) {
assert_initialized();
}
ZPage(type_from_size(vmem.size()), vmem, pmem) {}

ZPage::ZPage(uint8_t type, const ZVirtualMemory& vmem, const ZPhysicalMemory& pmem) :
_type(type),

0 comments on commit 75a8c71

Please sign in to comment.