diff options
Diffstat (limited to 'compiler-rt/lib/scudo/standalone/tests/bytemap_test.cc')
| -rw-r--r-- | compiler-rt/lib/scudo/standalone/tests/bytemap_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/lib/scudo/standalone/tests/bytemap_test.cc b/compiler-rt/lib/scudo/standalone/tests/bytemap_test.cc index 615b946c58c..ea34dc0ea90 100644 --- a/compiler-rt/lib/scudo/standalone/tests/bytemap_test.cc +++ b/compiler-rt/lib/scudo/standalone/tests/bytemap_test.cc @@ -28,13 +28,14 @@ TEST(ScudoByteMapTest, FlatByteMap) { const scudo::uptr Size = 1U << 10; scudo::FlatByteMap<Size> Map; testMap(Map, Size); + Map.unmapTestOnly(); } TEST(ScudoByteMapTest, TwoLevelByteMap) { const scudo::uptr Size1 = 1U << 6, Size2 = 1U << 12; scudo::TwoLevelByteMap<Size1, Size2> Map; testMap(Map, Size1 * Size2); - Map.reset(); + Map.unmapTestOnly(); } using TestByteMap = scudo::TwoLevelByteMap<1U << 12, 1U << 13>; @@ -69,5 +70,5 @@ TEST(ScudoByteMapTest, ThreadedTwoLevelByteMap) { } for (scudo::uptr I = 0; I < NumberOfThreads; I++) pthread_join(T[I], 0); - Map.reset(); + Map.unmapTestOnly(); } |

