GitLab maintenance scheduled for Today, 2019-12-05, from 17:00 to 18:00 CT - Services will be unavailable during this time.

Commit d097c5f1 authored by Shane Snyder's avatar Shane Snyder

move compression buffer alloc to shutdown time

parent 26c4ff22
......@@ -48,7 +48,7 @@ struct darshan_core_runtime
struct darshan_core_record_ref *rec_hash;
int rec_count;
struct darshan_core_module* mod_array[DARSHAN_MAX_MODS];
char comp_buf[DARSHAN_COMP_BUF_SIZE];
char *comp_buf;
double wtime_offset;
char *trailing_data;
};
......
......@@ -282,6 +282,13 @@ void darshan_core_shutdown()
final_core = darshan_core;
darshan_core = NULL;
final_core->comp_buf = malloc(DARSHAN_COMP_BUF_SIZE);
if(!(final_core->comp_buf))
{
darshan_core_cleanup(final_core);
return;
}
/* we also need to set which modules were registered on this process and
* call into those modules and give them a chance to perform any necessary
* pre-shutdown steps.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment