From ff1e5e48bf9b8dcf04438ad5017803624d1479dd Mon Sep 17 00:00:00 2001 From: wuggy Date: Mon, 29 Jun 2026 21:11:15 +0100 Subject: [PATCH] Re-add openMpCount --- js/src/vm/SelfHosting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/vm/SelfHosting.cpp b/js/src/vm/SelfHosting.cpp index bed953be2c..26fd6cc9e1 100644 --- a/js/src/vm/SelfHosting.cpp +++ b/js/src/vm/SelfHosting.cpp @@ -1495,7 +1495,7 @@ CopyValues(SharedMem dest, SharedMem src, uint32_t count) #if defined(_OPENMP) const int64_t openMpCount = int64_t(count); if (openMpCount >= (1 << 14)) { -#pragma omp parallel for default(none) shared(dest, src) schedule(static) +#pragma omp parallel for default(none) shared(dest, src, openMpCount) schedule(static) for (int64_t i = 0; i < openMpCount; i++) { uint32_t index = uint32_t(i); AtomicOperations::storeSafeWhenRacy(dest + index,