commit | 7302a74df6f956fe7e20b2c62441666835f1a1f5 | [log] [tgz] |
---|---|---|
author | Alex Light <allight@google.com> | Fri Feb 05 09:31:14 2021 -0800 |
committer | Alex Light <allight@google.com> | Sun Feb 07 22:10:57 2021 +0000 |
tree | b2806c310cdc5a50c76daed5866908e7f18af50b | |
parent | c5323fe55f82d91d53ac4ccfd82dde7baa55a4af [diff] |
Re-init Locks and MemMap for each gtest CommonRuntimeTest gtests will clear the MemMap statics when it deletes the runtime. This can cause other tests to fail if you run the gtests with the `--no_isolate` flag. By reinitializing these systems in CommonArtTestImpl::Setup in addition to the original call in gtest_main.cc this issue is avoided. Test: $ANDROID_HOST_OUT/nativetest64/art_compiler_tests/art_compiler_tests --no_isolate Change-Id: Ifb258e3ca6bf63ca0f821ed598143b3cc41d3e8b