From 020b39c3f3d3826d02c735c29d1dae7282aeb3f7 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Tue, 7 Jan 2014 13:45:50 -0800 Subject: runtime: use special records hung off the MSpan to record finalizers and heap profile info. Enables removing the special bit from the heap bitmap. Also provides a generic mechanism for annotating occasional heap objects. finalizers overhead per obj old 680 B 80 B avg new 16 B/span 48 B profile overhead per obj old 32KB 24 B + hash tables new 16 B/span 24 B R=cshapiro, khr, dvyukov, gobot CC=golang-codereviews https://golang.org/cl/13314053 --- src/pkg/runtime/runtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/runtime/runtime.h') diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 9e4cc80284..ef783efae0 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -66,6 +66,7 @@ typedef struct Itab Itab; typedef struct InterfaceType InterfaceType; typedef struct Eface Eface; typedef struct Type Type; +typedef struct PtrType PtrType; typedef struct ChanType ChanType; typedef struct MapType MapType; typedef struct Defer Defer; @@ -810,7 +811,6 @@ void runtime·stackfree(void*, uintptr); MCache* runtime·allocmcache(void); void runtime·freemcache(MCache*); void runtime·mallocinit(void); -void runtime·mprofinit(void); bool runtime·ifaceeq_c(Iface, Iface); bool runtime·efaceeq_c(Eface, Eface); uintptr runtime·ifacehash(Iface, uintptr); -- cgit v1.3-5-g9baa