Commit: ae7163007d9b3d4ca457d095e39c64c673253fe9
Author: Jacques Lucke
Date: Fri Jan 6 13:03:09 2023 +0100
Branches: master
https://developer.blender.org/rBae7163007d9b3d4ca457d095e39c64c673253fe9
Allocator: improve protection against false sharing
On Apple Silicon, the cache line size is 128 bytes.
===================================================================
M intern/guardedalloc/intern/memory_usage.cc
===================================================================
diff --git a/intern/guardedalloc/intern/memory_usage.cc
b/intern/guardedalloc/intern/memory_usage.cc
index d4abff32f79..2ea6fe7e85f 100644
--- a/intern/guardedalloc/intern/memory_usage.cc
+++ b/intern/guardedalloc/intern/memory_usage.cc
@@ -21,7 +21,7 @@ struct Global;
/**
* This is stored per thread. Align to cache line size to avoid false sharing.
*/
-struct alignas(64) Local {
+struct alignas(128) Local {
/**
* Retain shared ownership of #Global to make sure that it is not destructed.
*/
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs