Skip to content

Conversation

@devreal
Copy link
Contributor

@devreal devreal commented Mar 12, 2021

Backport of #8330 to 5.0.x, see there for details on the new info string handling.

devreal added 4 commits March 12, 2021 21:20
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
(cherry picked from commit aa25d10)
The key and info strings are now stored as opal_cstring_t objects so
returning them works by incrementing their reference count. The
caller is responsible for releasing the objects eventually. This avoids
many unnecessary string copy operations, which are now only required if
the string is to be modified (e.g., passed to strtok).

Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
(cherry picked from commit dc42985)
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
(cherry picked from commit 40ac165)
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
(cherry picked from commit 3c5c132)
@devreal devreal requested a review from jsquyres March 12, 2021 20:22
@devreal devreal changed the title Use reference-counted immutable strings with info objects Use reference-counted immutable strings with info objects [v.5.0.x] Mar 12, 2021
@devreal devreal changed the title Use reference-counted immutable strings with info objects [v.5.0.x] Use reference-counted immutable strings with info objects [v5.0.x] Mar 12, 2021
@jsquyres jsquyres added this to the v5.0.0 milestone Mar 12, 2021
@awlauria awlauria changed the title Use reference-counted immutable strings with info objects [v5.0.x] v5.0.x: Use reference-counted immutable strings with info objects Mar 15, 2021
@awlauria awlauria merged commit 4e51e7d into open-mpi:v5.0.x Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants