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:
2bfdf50
)
when calling mmap() with MAP_ANON, the fd argument should be -1
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 8 Jan 2009 15:53:41 +0000
(15:53 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 8 Jan 2009 15:53:41 +0000
(15:53 +0000)
might fix #2925
rts/Linker.c
patch
|
blob
|
history
diff --git
a/rts/Linker.c
b/rts/Linker.c
index
ef12e3e
..
ae1da56
100644
(file)
--- a/
rts/Linker.c
+++ b/
rts/Linker.c
@@
-1744,7
+1744,7
@@
static int ocAllocateSymbolExtras( ObjectCode* oc, int count, int first )
if( m > n ) // we need to allocate more pages
{
oc->symbol_extras = mmapForLinker(sizeof(SymbolExtra) * count,
- MAP_ANONYMOUS, 0);
+ MAP_ANONYMOUS, -1);
}
else
{