Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Decking
GHC
Commits
fa4ee2f3
Commit
fa4ee2f3
authored
Oct 19, 2006
by
Simon Marlow
Browse files
comments only: document allocateLocal()
parent
7cb0ffcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/Storage.h
View file @
fa4ee2f3
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment