Replace insert with assign to fix issue #15
authorJeff Preshing <filter-github@preshing.com>
Thu, 25 Aug 2016 16:47:40 +0000 (12:47 -0400)
committerJeff Preshing <filter-github@preshing.com>
Thu, 25 Aug 2016 16:47:40 +0000 (12:47 -0400)
samples/MapMemoryBench/MapMemoryBench.cpp

index e0c8fdcca62749560de67591dc3f9a055bbf079c..5cb0975da3cec7bc7b8c6f55f2bbc817d67dc30a 100644 (file)
@@ -44,7 +44,7 @@ int main() {
         for (ureg target = population + StepSize; population < target; population++) {
             u32 key = u32(population + 1) * Prime;
             if (key >= 2) {
         for (ureg target = population + StepSize; population < target; population++) {
             u32 key = u32(population + 1) * Prime;
             if (key >= 2) {
-                map->insert(key, (void*) uptr(key));
+                map->assign(key, (void*) uptr(key));
                 population++;
                 threadCtx.update();
                 ureg inUseBytes = TURF_HEAP.getInUseBytes();
                 population++;
                 threadCtx.update();
                 ureg inUseBytes = TURF_HEAP.getInUseBytes();