Skip to content

Commit

Permalink
Fix initialization of SharedObject Data
Browse files Browse the repository at this point in the history
  • Loading branch information
gvoskuilen committed May 9, 2024
1 parent 979b15a commit 34727aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sst/core/shared/sharedMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class SharedMap : public SharedObject
ChangeSet* change_set;
verify_type verify;

Data() : SharedObjectData() {}
Data() : SharedObjectData(), change_set(nullptr), verify(VERIFY_UNINITIALIZED) {}
Data(const std::string& name) : SharedObjectData(name), change_set(nullptr), verify(VERIFY_UNINITIALIZED)
{
if ( Private::getNumRanks().rank > 1 ) { change_set = new ChangeSet(name); }
Expand Down
2 changes: 1 addition & 1 deletion src/sst/core/shared/sharedSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class SharedSet : public SharedObject

verify_type verify;

Data() : SharedObjectData() {}
Data() : SharedObjectData(), change_set(nullptr), verify(VERIFY_UNINITIALIZED) {}
Data(const std::string& name) : SharedObjectData(name), change_set(nullptr), verify(VERIFY_UNINITIALIZED)
{
if ( Private::getNumRanks().rank > 1 ) { change_set = new ChangeSet(name); }
Expand Down

0 comments on commit 34727aa

Please sign in to comment.