X-Git-Url: http://plrg.eecs.uci.edu/git/?p=junction.git;a=blobdiff_plain;f=junction%2FConcurrentMap_Linear.h;h=4cf349d062c1c64eda17a35bf45031206271b4b3;hp=32b2a37e01bfb491dbde83a680ad0a653ab33aed;hb=6a7fe65045a50f9830aa674fcacf16f4e580eaa2;hpb=5ef33e5ba05721c917894fbe41f02394e719d1ce diff --git a/junction/ConcurrentMap_Linear.h b/junction/ConcurrentMap_Linear.h index 32b2a37..4cf349d 100644 --- a/junction/ConcurrentMap_Linear.h +++ b/junction/ConcurrentMap_Linear.h @@ -37,7 +37,7 @@ private: turf::Atomic m_root; public: - ConcurrentMap_Linear(ureg capacity) { + ConcurrentMap_Linear(ureg capacity = Details::InitialSize) { ureg limitNumValues = capacity * 3 / 4; m_root.storeNonatomic(Details::Table::create(capacity, limitNumValues)); }