Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
2d4e9216
Commit
2d4e9216
authored
Nov 24, 2005
by
simonmar
Browse files
[project @ 2005-11-24 14:02:40 by simonmar]
make this compile non-threaded again
parent
a141bd3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/Stable.c
View file @
2d4e9216
...
...
@@ -80,7 +80,9 @@ static snEntry *stable_ptr_free = NULL;
static
unsigned
int
SPT_size
=
0
;
#ifdef THREADED_RTS
static
Mutex
stable_mutex
;
#endif
/* This hash table maps Haskell objects to stable names, so that every
* call to lookupStableName on a given object will return the same
...
...
@@ -143,7 +145,9 @@ initStablePtrTable(void)
//
// Also, getStablePtr is now called from __attribute__((constructor))
// functions, so initialising things here wouldn't work anyway.
#ifdef THREADED_RTS
initMutex
(
&
stable_mutex
);
#endif
}
/*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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