summaryrefslogtreecommitdiff
path: root/includes/Stg.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-21 23:21:01 +0000
committerBen Gamari <ben@smart-cactus.org>2019-10-22 12:13:36 -0400
commit06d51c4ef776ee1bf66e3603b4c6e4e2acf8ba3c (patch)
treedec20251f027a9aba915f706c077c20c6fe5b062 /includes/Stg.h
parent17e5a032a66bc043b453727706d4fa95a7951202 (diff)
downloadhaskell-06d51c4ef776ee1bf66e3603b4c6e4e2acf8ba3c.tar.gz
Fix unregisterised buildwip/gc/nonmoving-concurrent
This required some fiddling around with the location of forward declarations since the C sources generated by GHC's C backend only includes Stg.h.
Diffstat (limited to 'includes/Stg.h')
-rw-r--r--includes/Stg.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/includes/Stg.h b/includes/Stg.h
index 8f0abdbf6d..46f71c0241 100644
--- a/includes/Stg.h
+++ b/includes/Stg.h
@@ -598,20 +598,3 @@ typedef union {
})
#endif
-/* -----------------------------------------------------------------------------
- Nonmoving GC write barrier
- -------------------------------------------------------------------------- */
-
-// Note that RTS code should not condition on this directly by rather
-// use the IF_NONMOVING_WRITE_BARRIER_ENABLED macro to ensure that
-// the barrier is eliminated in the non-threaded RTS.
-extern StgWord DLL_IMPORT_DATA_VAR(nonmoving_write_barrier_enabled);
-
-// A similar macro is defined in includes/Cmm.h for C-- code.
-#if defined(THREADED_RTS)
-#define IF_NONMOVING_WRITE_BARRIER_ENABLED \
- if (RTS_UNLIKELY(nonmoving_write_barrier_enabled))
-#else
-#define IF_NONMOVING_WRITE_BARRIER_ENABLED \
- if (0)
-#endif