Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
darshan
darshan
Commits
d097c5f1
Commit
d097c5f1
authored
Dec 08, 2015
by
Shane Snyder
Browse files
move compression buffer alloc to shutdown time
parent
26c4ff22
Changes
2
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/darshan-core.h
View file @
d097c5f1
...
...
@@ -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
;
};
...
...
darshan-runtime/lib/darshan-core.c
View file @
d097c5f1
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment