-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Firestore: Fix memory leak in Query.whereField() #14300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
107 commits
Select commit
Hold shift + click to select a range
769e1df
Firestore: Fix memory leak in thread_safe_memoizer.h
dconeybe 110c0f0
Firestore/CHANGELOG.md updated
dconeybe 0e8bc9d
use absl::make_unique instead of std::make_unique
dconeybe 260de9f
upgrade python from 3.7 to 3.11 in firestore.yml and firestore-nightl…
dconeybe 3451e13
firestore.yml: add workflow_dispatch trigger
dconeybe 8df7855
Merge remote-tracking branch 'origin/main' into ThreadSafeMemoizerMem…
dconeybe ab5bc69
thread_safe_memoizer.h: add missing #include <atomic>
dconeybe 7d9f957
string_format.h: create the StringifySink at the correct scope and pa…
dconeybe 1f00fb1
string_format.h: format code
dconeybe 0f7dd55
Merge remote-tracking branch 'origin/main' into ThreadSafeMemoizerMem…
dconeybe aeb0b05
string_format.h: fix use-after-free bug due to insufficient lifetime …
dconeybe 82e5289
string_format_test.cc: strengthen Pointer test to match a regex rathe…
dconeybe 24066f5
Firestore/CHANGELOG.md entry added
dconeybe a4ef6c6
Merge branch 'StringFormatStringifySinkUseAfterFreeFix' into ThreadSa…
dconeybe 2a30d70
use std::shared_ptr to much more easily implement the shared ownershi…
dconeybe f5ae906
remove the comment about making thread_safe_memoizer.h copyable
dconeybe d925a22
thread_safe_memoizer.h reword
dconeybe 903df59
get things to compile
dconeybe 514ce75
Merge remote-tracking branch 'origin/main' into ThreadSafeMemoizerMem…
dconeybe d21fb17
minor code cleanup
dconeybe 2ca4d15
more cleanup;
dconeybe bc0f5c9
add missing include
dconeybe 90a3564
thread_safe_memoizer.h: use std::atomic<std::shared_ptr>> in c++20
dconeybe 23e4cf5
Merge remote-tracking branch 'origin/main' into ThreadSafeMemoizerMem…
dconeybe f3aa1b6
Merge remote-tracking branch 'origin/main' into StringFormatStringify…
dconeybe b9592b3
Merge branch 'StringFormatStringifySinkUseAfterFreeFix' into ThreadSa…
dconeybe c376080
fix lint
dconeybe d344f17
thread_safe_memoizer_test.cc: starting rewrite
dconeybe ca8fb41
Firestore/core/test/unit/util/thread_safe_memoizer_testing_test.cc added
dconeybe 7313213
fix regex tests
dconeybe 5833e22
cleanups
dconeybe 2c232f5
thread_safe_memoizer_test.cc: Value_ShouldNotInvokeTheFunctionAfterMe…
dconeybe e6c26a7
thread_safe_memoizer_test.cc: copy constructor tests
dconeybe 76f3249
thread_safe_memoizer_test.cc: move constructor tests
dconeybe 32025e7
thread_safe_memoizer_test.cc: copy assignment operator tests
dconeybe ccc3b3b
thread_safe_memoizer_test.cc: move assignment operator tests
dconeybe 05b074c
thread_safe_memoizer_test.cc: add tests to make sure the object gets …
dconeybe a37a376
Firestore.xcodeproj/project.pbxproj: add missing files
dconeybe 901b7b5
cpplint.py: remove c++11 lint checks, as the floor is c++14 (and has …
dconeybe b55ee13
cpplint.py: remove c++11 lint checks, as the floor is c++14 (and has …
dconeybe b84c9b6
thread_safe_memoizer_testing.cc: add missing #include <utility>
dconeybe c46f9d2
also remove cpp14 warnings
dconeybe aebe23e
also remove c++14 warnings
dconeybe 3b2583c
Merge remote-tracking branch 'origin/main' into StringFormatStringify…
dconeybe 64d14b8
string_format_test.cc: improve robustness of NonNullPointer test to a…
dconeybe da3f7c9
Merge remote-tracking branch 'origin/main' into StringFormatStringify…
dconeybe 1721117
string_format.h: make FormatArg final, to strongly discourage others …
dconeybe 72833ca
add comment about b/388888512
dconeybe 68ccc04
format code
dconeybe 7464449
Merge remote-tracking branch 'remotes/origin/dconeybe/StringFormatStr…
dconeybe ef59e2c
Merge remote-tracking branch 'origin/main' into ThreadSafeMemoizerMem…
dconeybe 012b8a9
fix lint
dconeybe 7800770
Merge remote-tracking branch 'origin/main' into RemoveCpp11LintChecks
dconeybe e3aa90f
cpplint.py: actually remove the c++11 and C++14 checks.
dconeybe e2031c7
cpplint.py: remove usages of the deprecated sre_compile Python module.
dconeybe 73e74cf
cpplint.py: relax checks for "using namespace" declarations for impor…
dconeybe bb3b0f3
.github/workflows/firestore.yml: run Firestore tests when cpplint.py …
dconeybe 0b737db
Revert ".github/workflows/firestore.yml: run Firestore tests when cpp…
dconeybe fb7df47
scripts/check.sh: run lint on _ALL_ files if cpplint.py itself changed.
dconeybe bd0a6d8
scripts/check.sh: fix check of base branch
dconeybe 7435976
scripts/check.sh: more fixes
dconeybe 1685499
scripts/check.sh: try again
dconeybe a1bf8c0
scripts/check.sh: also check for changes to cpplint.py
dconeybe 39318ff
Merge remote-tracking branch 'remotes/origin/dconeybe/RemoveCpp11Lint…
dconeybe 55c2437
thread_safe_memoizer.h: add comments explaining the rationale for usi…
dconeybe 694533f
.github/workflows/firestore.yml: run tests under C++20 as well
dconeybe 954e171
.github/workflows/firestore.yml: grep for CMAKE_CXX_STANDARD to provi…
dconeybe 98dfa26
.github/workflows/firestore.yml: improve output when patching c++ ver…
dconeybe 2d43959
fix some c++20 build errors
dconeybe 57d60cf
.github/workflows/firestore.yml: run tests with c++17, in addition to…
dconeybe 713ae35
utf8_testing.h: remove constexpr from StringFromU8String return type,…
dconeybe cd059dc
.github/workflows/firestore.yml: run on c++17 and c++23, as well as w…
dconeybe dbc6832
format code
dconeybe 899a256
utf8_testing.h: fix copyright header
dconeybe dbb11b7
.github/workflows/firestore.yml: fix `env` completing with non-zero e…
dconeybe 83ba2fc
fix some warnings: explicit capture of 'this' with a capture default …
dconeybe 472ee58
format code
dconeybe c66acf7
Merge remote-tracking branch 'origin/main' into ThreadSafeMemoizerMem…
dconeybe dabc396
.github/workflows/firestore.yml: remove testing in c++23, since it is…
dconeybe b3366bf
cmake/compiler_setup.cmake: clean up warnings to be more practical
dconeybe 10ebc75
cmake/compiler_setup.cmake: disable redundant-move altogether
dconeybe 4608f23
thread_safe_memoizer.h: fix data race
dconeybe b386b40
thread_safe_memoizer_test.cc: add TSAN-specific tests: TSAN_Concurren…
dconeybe 686db4c
lru_garbage_collector.cc: fix c++20 build error relating to inconsist…
dconeybe 03cf713
direction.cc/testutil.cc: fix c++20 build error relating to inconsist…
dconeybe e4241e4
cpplint.py: add back error categories: build/c++11, build/c++14, buil…
dconeybe 4c80660
Merge remote-tracking branch 'origin/main' into RemoveCpp11LintChecks
dconeybe 167b427
cpplint.py: add back error categories: build/c++11, build/c++14, buil…
dconeybe e66e4c7
Merge remote-tracking branch 'remotes/origin/dconeybe/RemoveCpp11Lint…
dconeybe a87d159
git checkout --no-overlay origin/main .
dconeybe 7f05f8d
thread_safe_memoizer.h: re-write using atomics to fix apparent memory…
dconeybe 634a47a
Firestore/Example/Firestore.xcodeproj/project.pbxproj updated
dconeybe 8f65488
scripts/cpplint.py: remove warnings about using std::make_unique() si…
dconeybe 11b5324
fix lint
dconeybe 48563d7
Merge remote-tracking branch 'origin/main' into ThreadSafeMemoizerMem…
dconeybe a209bd4
scripts/check.sh: remove my changes since I'm not entirely convinced …
dconeybe d2f0c10
Merge remote-tracking branch 'origin/main' into RemoveCpp11LintChecks
dconeybe 6a5c600
scripts/cpplint.py: add back build/namespaces_literals so that cpplin…
dconeybe 7607f94
Merge branch 'RemoveCpp11LintChecks' into ThreadSafeMemoizerMemoryLea…
dconeybe f6e95a3
scripts/cpplint.py: undo local changes
dconeybe 605bcf4
Revert "fix lint"
dconeybe 342557b
Merge remote-tracking branch 'origin/main' into ThreadSafeMemoizerMem…
dconeybe fae4442
thread_safe_memoizer.h: tighten determinism of value() to call the gi…
dconeybe 8f5d1e9
fix when running under tsan
dconeybe aaba0a6
Merge remote-tracking branch 'origin/main' into ThreadSafeMemoizerMem…
dconeybe 5e7ac93
thread_safe_memoizer_testing_test.cc: improve test name to "CountingF…
dconeybe c9c568a
thread_safe_memoizer_testing.h: add TODO(c++20) Replace with std::latch.
dconeybe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.