Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
74
Issues
74
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
d097c5f1
Commit
d097c5f1
authored
Dec 08, 2015
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move compression buffer alloc to shutdown time
parent
26c4ff22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
darshan-runtime/darshan-core.h
darshan-runtime/darshan-core.h
+1
-1
darshan-runtime/lib/darshan-core.c
darshan-runtime/lib/darshan-core.c
+7
-0
No files found.
darshan-runtime/darshan-core.h
View file @
d097c5f1
...
@@ -48,7 +48,7 @@ struct darshan_core_runtime
...
@@ -48,7 +48,7 @@ struct darshan_core_runtime
struct
darshan_core_record_ref
*
rec_hash
;
struct
darshan_core_record_ref
*
rec_hash
;
int
rec_count
;
int
rec_count
;
struct
darshan_core_module
*
mod_array
[
DARSHAN_MAX_MODS
];
struct
darshan_core_module
*
mod_array
[
DARSHAN_MAX_MODS
];
char
comp_buf
[
DARSHAN_COMP_BUF_SIZE
]
;
char
*
comp_buf
;
double
wtime_offset
;
double
wtime_offset
;
char
*
trailing_data
;
char
*
trailing_data
;
};
};
...
...
darshan-runtime/lib/darshan-core.c
View file @
d097c5f1
...
@@ -282,6 +282,13 @@ void darshan_core_shutdown()
...
@@ -282,6 +282,13 @@ void darshan_core_shutdown()
final_core
=
darshan_core
;
final_core
=
darshan_core
;
darshan_core
=
NULL
;
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
/* 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
* call into those modules and give them a chance to perform any necessary
* pre-shutdown steps.
* pre-shutdown steps.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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