summaryrefslogtreecommitdiffstats
path: root/include/framework/structure/MutableBuffer.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2024-03-20 17:30:14 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2024-03-20 17:30:14 -0400
commit9fe190f5d500e22b0894095e7c917f9c652e0a64 (patch)
tree79d1c11a59d8279989bd6d7aafbf8ad938687fcc /include/framework/structure/MutableBuffer.h
parent405bf4a20b4a22a6bb4b60b730b6a7e901fdccf6 (diff)
downloaddynamic-extension-9fe190f5d500e22b0894095e7c917f9c652e0a64.tar.gz
Updates/progress towards succinct trie support
Diffstat (limited to 'include/framework/structure/MutableBuffer.h')
-rw-r--r--include/framework/structure/MutableBuffer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/framework/structure/MutableBuffer.h b/include/framework/structure/MutableBuffer.h
index c0c87cc..1ed0200 100644
--- a/include/framework/structure/MutableBuffer.h
+++ b/include/framework/structure/MutableBuffer.h
@@ -50,7 +50,8 @@ public:
, m_tail(0)
, m_head({0, 0})
, m_old_head({high_watermark, 0})
- , m_data((Wrapped<R> *) psudb::sf_aligned_alloc(CACHELINE_SIZE, m_cap * sizeof(Wrapped<R>)))
+ //, m_data((Wrapped<R> *) psudb::sf_aligned_alloc(CACHELINE_SIZE, m_cap * sizeof(Wrapped<R>)))
+ , m_data(new Wrapped<R>[m_cap]())
, m_tombstone_filter(new psudb::BloomFilter<R>(BF_FPR, m_hwm, BF_HASH_FUNCS))
, m_tscnt(0)
, m_old_tscnt(0)
@@ -61,7 +62,7 @@ public:
}
~MutableBuffer() {
- free(m_data);
+ delete[] m_data;
delete m_tombstone_filter;
}