From 59972e6b90103c9f14a45e6d15f8d807e613b291 Mon Sep 17 00:00:00 2001 From: GaneshRapolu Date: Mon, 30 Mar 2026 19:03:46 -0700 Subject: [PATCH] Fix predicate --- hardware/scaling/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/scaling/README.md b/hardware/scaling/README.md index f488cbc..71fe974 100644 --- a/hardware/scaling/README.md +++ b/hardware/scaling/README.md @@ -161,9 +161,9 @@ Avoid false sharing of data, adding alignment/padding as needed. This can be com Minimize contention for true sharing: ``` - global_flag = true => if (global_flag) global_flag = true + global_flag = true => if (!global_flag) global_flag = true ``` avoids unnecessary writes to a shared cache line. -Use a scalable malloc such as [jemalloc](https://jemalloc.net/) or [tcmalloc](https://github.com/google/tcmalloc) or [oneTBB malloc](https://uxlfoundation.github.io/oneTBB/main/tbb_userguide/automatically-replacing-malloc.html) if malloc library contention shows up. \ No newline at end of file +Use a scalable malloc such as [jemalloc](https://jemalloc.net/) or [tcmalloc](https://github.com/google/tcmalloc) or [oneTBB malloc](https://uxlfoundation.github.io/oneTBB/main/tbb_userguide/automatically-replacing-malloc.html) if malloc library contention shows up.