projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7cb0ffc
)
comments only: document allocateLocal()
author
Simon Marlow
<simonmar@microsoft.com>
Thu, 19 Oct 2006 10:12:00 +0000
(10:12 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Thu, 19 Oct 2006 10:12:00 +0000
(10:12 +0000)
includes/Storage.h
patch
|
blob
|
history
diff --git
a/includes/Storage.h
b/includes/Storage.h
index
1346715
..
09b1b04
100644
(file)
--- 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.
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).
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.
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 );
-------------------------------------------------------------------------- */
extern StgPtr allocate ( nat n );