commit | 6c228114e73500a6f319e6a5b6559c754e05a10b | [log] [tgz] |
---|---|---|
author | Kartar Singh <kartarsingh@google.com> | Mon Oct 10 19:12:16 2022 |
committer | Mike Wittman <wittman@chromium.org> | Mon Oct 10 19:19:14 2022 |
tree | 1ed2866a1249106f1ae5c905596ec88ebd937a5c | |
parent | 1ac11f3cff728a7aca0de06edbebf1f2efff9771 [diff] |
Move class static variables to function static Chrome bans use of static initializers. As a result we can't roll libdexfile changes into Chromium. This CL moves static class members DexFile::g_lock and DexFile::g_mapped_dex_files into the static function DexFile::CreateFromDisk(the only user of those static class members). Test: - Build `chrome/android:monochrome_static_initializers` successfully https://chromium.googlesource.com/chromium/src.git/+/HEAD/docs/static_initializers.md#step-1-use-objdump-to-report-them Bug: 1365904 Change-Id: Ibfe96c18e1747c2483db0b2f0a39b4918c809298 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/third_party/libunwindstack/+/3942065 Reviewed-by: Tushar Agarwal <agarwaltushar@google.com> Reviewed-by: Mike Wittman <wittman@chromium.org>