aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/lfstack_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/lfstack_test.go')
-rw-r--r--src/runtime/lfstack_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/lfstack_test.go b/src/runtime/lfstack_test.go
index e36297e541..c356c1e747 100644
--- a/src/runtime/lfstack_test.go
+++ b/src/runtime/lfstack_test.go
@@ -21,7 +21,7 @@ type MyNode struct {
// We require lfstack objects to live outside the heap so that
// checkptr passes on the unsafe shenanigans used.
func allocMyNode(data int) *MyNode {
- n := (*MyNode)(PersistentAlloc(unsafe.Sizeof(MyNode{})))
+ n := (*MyNode)(PersistentAlloc(unsafe.Sizeof(MyNode{}), TagAlign))
LFNodeValidate(&n.LFNode)
n.data = data
return n