aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/malloc.goc
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-12-13 16:22:19 -0500
committerRuss Cox <rsc@golang.org>2010-12-13 16:22:19 -0500
commitdc9a3b2791feb3aade3b8cf00891eddcb5b5ed90 (patch)
tree9e0716513b9c3ea0c15e64464149952daaf5c48d /src/pkg/runtime/malloc.goc
parent287e45e2418fa2d22e1cea22b6f9a5b0e1659bb5 (diff)
downloadgo-dc9a3b2791feb3aade3b8cf00891eddcb5b5ed90.tar.xz
gc: align structs according to max alignment of fields
cc: same runtime: test cc alignment (required moving #define of offsetof to runtime.h) fix bug260 Fixes #482. Fixes #609. R=ken2, r CC=golang-dev https://golang.org/cl/3563042
Diffstat (limited to 'src/pkg/runtime/malloc.goc')
-rw-r--r--src/pkg/runtime/malloc.goc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/runtime/malloc.goc b/src/pkg/runtime/malloc.goc
index 405b05ee96..f5ca9f9183 100644
--- a/src/pkg/runtime/malloc.goc
+++ b/src/pkg/runtime/malloc.goc
@@ -244,6 +244,8 @@ runtime·allocmcache(void)
return c;
}
+int32 runtime·sizeof_C_MStats = sizeof(MStats);
+
void
runtime·mallocinit(void)
{