Skip to content

Commit e8cac2d

Browse files
authored
Fix predicate (#26)
1 parent 343cd94 commit e8cac2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hardware/scaling/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ Avoid false sharing of data, adding alignment/padding as needed. This can be com
161161
Minimize contention for true sharing:
162162

163163
```
164-
global_flag = true => if (global_flag) global_flag = true
164+
global_flag = true => if (!global_flag) global_flag = true
165165
```
166166

167167
avoids unnecessary writes to a shared cache line.
168168

169-
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.
169+
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.

0 commit comments

Comments
 (0)