summaryrefslogtreecommitdiffstats
path: root/include/framework/DynamicExtension.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2023-09-18 12:25:01 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2023-09-18 12:25:01 -0400
commit7f56949bc847b56da69c9eb3ebe081d6cf9f61c6 (patch)
treedd70d81129b899b98b08c1ee7110765cc2b488b0 /include/framework/DynamicExtension.h
parenteb8dbaa770a57557d67c817c2839c64f536a6ce4 (diff)
downloaddynamic-extension-7f56949bc847b56da69c9eb3ebe081d6cf9f61c6.tar.gz
General bugfixes
Diffstat (limited to 'include/framework/DynamicExtension.h')
-rw-r--r--include/framework/DynamicExtension.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/framework/DynamicExtension.h b/include/framework/DynamicExtension.h
index 5e9bcee..08e2243 100644
--- a/include/framework/DynamicExtension.h
+++ b/include/framework/DynamicExtension.h
@@ -40,7 +40,10 @@ public:
: m_scale_factor(scale_factor)
, m_max_delete_prop(max_delete_prop)
, m_sched(memory_budget, thread_cnt)
- { }
+ {
+ m_buffers.push_back(new Buffer(buffer_cap, max_delete_prop*buffer_cap));
+ m_versions.push_back(new Structure(buffer_cap, scale_factor, max_delete_prop));
+ }
~DynamicExtension() {
for (size_t i=0; i<m_buffers.size(); i++) {