From fa4ee2f36b0b685c3cd1935f1a56bfb796aca0e2 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 19 Oct 2006 10:12:00 +0000 Subject: [PATCH] comments only: document allocateLocal() --- includes/Storage.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/Storage.h b/includes/Storage.h index 1346715..09b1b04 100644 --- a/includes/Storage.h +++ b/includes/Storage.h @@ -118,6 +118,12 @@ extern void freeStorage(void); n words long, returning a pointer to the first word. Always succeeds. + StgPtr allocateLocal(Capability *cap, nat n) + Allocates memory from the nursery in + the current Capability. This can be + done without taking a global lock, + unlike allocate(). + StgPtr allocatePinned(nat n) Allocates a chunk of contiguous store n words long, which is at a fixed address (won't be moved by GC). @@ -141,8 +147,6 @@ extern void freeStorage(void); via allocate() since the last GC. Used in the reporting of statistics. - THREADED_RTS: allocate and doYouWantToGC can be used from STG code, they are - surrounded by a mutex. -------------------------------------------------------------------------- */ extern StgPtr allocate ( nat n ); -- 1.7.10.4