diff options
| author | Russ Cox <rsc@golang.org> | 2008-12-18 15:42:28 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2008-12-18 15:42:28 -0800 |
| commit | e29ce175eda2016b93e755b6a5ae759b5b692834 (patch) | |
| tree | 50267429e2432b2039d63c2514b6099a2421d455 /src/runtime/runtime.h | |
| parent | 6ccca61510ac3e3a9e96019bc6bfb1286cac080e (diff) | |
| download | go-e29ce175eda2016b93e755b6a5ae759b5b692834.tar.xz | |
malloc in runtime (not used by default)
R=r
DELTA=1551 (1550 added, 0 deleted, 1 changed)
OCL=21404
CL=21538
Diffstat (limited to 'src/runtime/runtime.h')
| -rw-r--r-- | src/runtime/runtime.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index dbd31621f2..97d675c98d 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -49,6 +49,7 @@ typedef struct Stktop Stktop; typedef struct String *string; typedef struct Usema Usema; typedef struct SigTab SigTab; +typedef struct MCache MCache; /* * per cpu declaration @@ -163,7 +164,7 @@ struct M M* schedlink; Mem mem; uint32 machport; // Return address for Mach IPC (OS X) - void* freelist[SmallFreeClasses]; + MCache *mcache; }; struct Stktop { @@ -280,6 +281,8 @@ Func* findfunc(uint64); int32 funcline(Func*, uint64); void* stackalloc(uint32); void stackfree(void*); +MCache* allocmcache(void); +void mallocinit(void); #pragma varargck argpos printf 1 |
