Commit e562d3a5 authored by Simon Marlow's avatar Simon Marlow
Browse files

remove now-unused atomic_modify_mutvar_mutex

parent ff93deac
...@@ -69,10 +69,6 @@ step *nurseries = NULL; /* array of nurseries, >1 only if THREADED_RTS * ...@@ -69,10 +69,6 @@ step *nurseries = NULL; /* array of nurseries, >1 only if THREADED_RTS *
* simultaneous access by two STG threads. * simultaneous access by two STG threads.
*/ */
Mutex sm_mutex; Mutex sm_mutex;
/*
* This mutex is used by atomicModifyMutVar# only
*/
Mutex atomic_modify_mutvar_mutex;
#endif #endif
...@@ -148,7 +144,6 @@ initStorage( void ) ...@@ -148,7 +144,6 @@ initStorage( void )
#if defined(THREADED_RTS) #if defined(THREADED_RTS)
initMutex(&sm_mutex); initMutex(&sm_mutex);
initMutex(&atomic_modify_mutvar_mutex);
#endif #endif
ACQUIRE_SM_LOCK; ACQUIRE_SM_LOCK;
...@@ -297,7 +292,6 @@ freeStorage (void) ...@@ -297,7 +292,6 @@ freeStorage (void)
freeAllMBlocks(); freeAllMBlocks();
#if defined(THREADED_RTS) #if defined(THREADED_RTS)
closeMutex(&sm_mutex); closeMutex(&sm_mutex);
closeMutex(&atomic_modify_mutvar_mutex);
#endif #endif
stgFree(nurseries); stgFree(nurseries);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment