From 59203c63bb777a3bacec32fb8830fba33540e809 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:35:29 +0200 Subject: Adding upstream version 127.0. Signed-off-by: Daniel Baumann --- js/src/vm/GeckoProfiler.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'js/src/vm/GeckoProfiler.cpp') diff --git a/js/src/vm/GeckoProfiler.cpp b/js/src/vm/GeckoProfiler.cpp index dbf1eb9081..91f03b3432 100644 --- a/js/src/vm/GeckoProfiler.cpp +++ b/js/src/vm/GeckoProfiler.cpp @@ -371,12 +371,11 @@ void GeckoProfilerRuntime::fixupStringsMapAfterMovingGC() { #ifdef JSGC_HASH_TABLE_CHECKS void GeckoProfilerRuntime::checkStringsMapAfterMovingGC() { - for (auto r = strings().all(); !r.empty(); r.popFront()) { - BaseScript* script = r.front().key(); + CheckTableAfterMovingGC(strings(), [](const auto& entry) { + BaseScript* script = entry.key(); CheckGCThingAfterMovingGC(script); - auto ptr = strings().lookup(script); - MOZ_RELEASE_ASSERT(ptr.found() && &*ptr == &r.front()); - } + return script; + }); } #endif -- cgit v1.2.3