We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10aa706 commit 9e34c05Copy full SHA for 9e34c05
amd/device-libs/asanrtl/src/dm.cl
@@ -46,11 +46,9 @@ typedef struct alloc_struct {
46
#define SLAB_THRESHOLD (SLAB_BYTES / 64)
47
#define SLAB_HEADER_BYTES 32
48
49
-// Use 24 bit counter to avoid ABA
50
// Assume SLAB_ALIGN so low 12 bits are already clear
51
-// XXX Reduce if virtual address > 52 bits
52
-#define SLAB_SHIFT 12
53
-#define SLAB_CTR_MASK (ulong)0xffffff
+#define SLAB_SHIFT 6
+#define SLAB_CTR_MASK ((1UL << (SLAB_SHIFT+12)) - 1UL)
54
55
#define LINE 128
56
#define PAD(N,M) ulong pad##N[LINE/8 - M];
0 commit comments