fix memory allocation bug in rose benchmark initialization code
This commit is contained in:
parent
16372e46d2
commit
2e237f2e2b
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ int main(int argc, char **argv) {
|
|||
int ret;
|
||||
// multicolumn is deprecated; want static dispatch!
|
||||
|
||||
rose::plugin_id_t * plugins = (rose::plugin_id_t*)malloc(10 * sizeof(rose::plugin_id_t));
|
||||
rose::plugin_id_t * plugins = (rose::plugin_id_t*)malloc(20 * sizeof(rose::plugin_id_t));
|
||||
|
||||
plugins[0] = rose::plugin_id<rose::Multicolumn<tup>, Rle<typ0>, typ0>();
|
||||
plugins[1] = rose::plugin_id<rose::Multicolumn<tup>, Rle<typ1>, typ1>(); // rle
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#ifdef STASIS_BUFFER_MANAGER_FACTORY
|
||||
stasis_buffer_manager_t * stasis_buffer_manager_factory = STASIS_BUFFER_MANAGER_FACTORY;
|
||||
#else
|
||||
stasis_buffer_manager_t * (*stasis_buffer_manager_factory)(stasis_log_t*, stasis_dirty_page_table_t*) = stasis_buffer_manager_concurrent_hash_factory;
|
||||
stasis_buffer_manager_t * (*stasis_buffer_manager_factory)(stasis_log_t*, stasis_dirty_page_table_t*) = stasis_buffer_manager_hash_factory;
|
||||
#endif
|
||||
|
||||
#ifdef BUFFER_MANAGER_O_DIRECT
|
||||
|
|
Loading…
Reference in a new issue