summaryrefslogtreecommitdiff
path: root/includes/Storage.h
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-10-19 10:12:00 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-10-19 10:12:00 +0000
commitfa4ee2f36b0b685c3cd1935f1a56bfb796aca0e2 (patch)
treea9b2626f15576c3d0a7f1f092e6647b5bd12d385 /includes/Storage.h
parent7cb0ffcb5a7e6f6ae4cce2adf61b3a3e78bbd78c (diff)
downloadhaskell-fa4ee2f36b0b685c3cd1935f1a56bfb796aca0e2.tar.gz
comments only: document allocateLocal()
Diffstat (limited to 'includes/Storage.h')
-rw-r--r--includes/Storage.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/Storage.h b/includes/Storage.h
index 1346715ffb..09b1b04881 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 );