Skip to content

Commit

Permalink
Per review, default to not freeing buffers on flush
Browse files Browse the repository at this point in the history
---
Signed-off-by: Michael Ferguson <[email protected]>
  • Loading branch information
mppf committed Feb 11, 2025
1 parent 93dc095 commit 345b345
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions modules/packages/CopyAggregation.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ module CopyAggregation {
if aggregate then agg.copy(dst, srcVal);
else dst = srcVal;
}
inline proc ref flush(freeBuffers=true) {
// TODO: consider having no default or defaulting to 'false'

inline proc ref flush(freeBuffers=false) {
if aggregate then agg.flush(freeBuffers=freeBuffers);
}
}
Expand All @@ -136,9 +134,7 @@ module CopyAggregation {
if aggregate then agg.copy(dst, src);
else dst = src;
}
inline proc ref flush(freeBuffers=true) {
// TODO: consider having no default or defaulting to 'false'

inline proc ref flush(freeBuffers=false) {
if aggregate then agg.flush(freeBuffers=freeBuffers);
}
}
Expand Down

0 comments on commit 345b345

Please sign in to comment.