summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
author Stefano Cianciulli <scianciulli@google.com> 2024-07-19 10:12:31 +0000
committer Stefano Cianciulli <scianciulli@google.com> 2024-07-19 13:01:58 +0000
commit841e48f39dad0e560ec45df0d5ff805a74ddb3fe (patch)
treede0ca7f0684b0fb614d0951b92430b273ab66cf2 /runtime/class_linker.cc
parent65727194ab7c240a56863293eb77d44347b55995 (diff)
Stop the metrics thread in teardown in MetricsReporterTest
We have observed a heap-use-after-free in ASAN tests, and the root cause has been found in a race condition for which the background thread that reports metrics can try to update a member variable within the ArtMetrics object which has already been freed due to the object destruction ordering. This change stops the background thread explicitly as part of the test teardown phase so the race condition is avoided. Bug: 344766711 Test: TARGET_PRODUCT=armv8 TARGET_RELEASE=trunk_staging TARGET_BUILD_VARIANT=eng ./prebuilts/build-tools/path/linux-x86/python3 ./art/test/testrunner/run_build_test_target.py -j80 art-gtest-heap-poisoning Change-Id: I17c5ee2937d6a2898c0808a348ef5f338619764a
Diffstat (limited to 'runtime/class_linker.cc')
0 files changed, 0 insertions, 0 deletions