Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Fix race in RetrieveData #799

Merged
merged 1 commit into from
Jun 25, 2018

Conversation

semistrict
Copy link
Contributor

RetrieveData previously would return pointers to internal
aggregators that might subsequently be mutated based on future
view updates.

Instead, have collectedRows always return an immutable snapshot
of the collected aggregators (by calling clone on each one).

Since we do this, we can also avoid a defensive copy on the normal
export path.

RetrieveData previously would return pointers to internal
aggregators that might subsequently be mutated based on future
view updates.

Instead, have collectedRows always return an immutable snapshot
of the collected aggregators (by calling clone on each one).

Since we do this, we can also avoid a defensive copy on the normal
export path.

Fixes: census-instrumentation#795
@semistrict semistrict merged commit 420188b into census-instrumentation:master Jun 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants