Skip to content

Instantly share code, notes, and snippets.

@adetaylor
Last active November 4, 2022 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adetaylor/38fee936ce961fcd7a8260cd195df005 to your computer and use it in GitHub Desktop.
Save adetaylor/38fee936ce961fcd7a8260cd195df005 to your computer and use it in GitHub Desktop.
TEST(ValuesTest, DataRace) {
Value::List parent;
parent.Append(1);
parent.Append(2);
parent.Append(3);
for (auto it = parent.cbegin(); it != parent.cend(); it++) {
if (*it == 2) {
parent.reserve(100);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment