summaryrefslogtreecommitdiff
path: root/compiler/optimizing/code_generator.cc
diff options
context:
space:
mode:
author Stefano Cianciulli <scianciulli@google.com> 2022-09-02 10:54:44 +0000
committer Stefano Cianciulli <scianciulli@google.com> 2022-09-05 08:20:55 +0000
commit94383b4038970838ded1f0a482f16d8b612a4701 (patch)
tree3ff85ad8a91458308bbb42ea9d5f5e0e79566564 /compiler/optimizing/code_generator.cc
parent7023bf8227b3f46f4c3cc98e18889f54a584cd16 (diff)
Fix bugprone-unused-return-value clang-tidy issues
This CL fixed the last remaining bugprone-unused-return-value issue reported by clang-tidy: instead of calling the method Runtime::AppendToBootClassPath (which does not get ownership of the pointers to the DEX files), a new method called Runtime::AddExtraBootDexFiles has been created, which works similarly to the previous one, but calls internally the method ClassLinker::AddExtraBootDexFiles, where pointers are transferred ownership, therefore eliminating the for loop with the calls to std::unique_ptr::release, which was most likely causing a memory leak. Bug: 213953102 Test: art/test/testrunner/run_build_test_target.py -j80 art-test | grep "936-search-onload" Change-Id: I4b4237f3fb4fbe399e8cd3154e0465b9cfb0e05c
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
0 files changed, 0 insertions, 0 deletions