summaryrefslogtreecommitdiff
path: root/includes/rts
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2016-02-27 22:02:22 +0100
committerThomas Miedema <thomasmiedema@gmail.com>2016-04-29 10:48:27 +0200
commita2970f883d1018107f745531aab56e872311d8c7 (patch)
treeb4c41b44ab1e3dc269ede821a05af97607843b0c /includes/rts
parent0fa1d075eb1ec07ff6e22472fc5d6f08b3206a2f (diff)
downloadhaskell-a2970f883d1018107f745531aab56e872311d8c7.tar.gz
RTS: delete BlockedOnGA* + dead code
Some old stuff related to the PAR way. Reviewed by: austin, simonmar Differential Revision: https://phabricator.haskell.org/D2137
Diffstat (limited to 'includes/rts')
-rw-r--r--includes/rts/Constants.h5
-rw-r--r--includes/rts/storage/ClosureMacros.h6
-rw-r--r--includes/rts/storage/InfoTables.h4
-rw-r--r--includes/rts/storage/TSO.h11
4 files changed, 3 insertions, 23 deletions
diff --git a/includes/rts/Constants.h b/includes/rts/Constants.h
index 6e44410f0e..b65b8d3a9d 100644
--- a/includes/rts/Constants.h
+++ b/includes/rts/Constants.h
@@ -212,11 +212,6 @@
/* Win32 only: */
#define BlockedOnDoProc 7
-/* Only relevant for PAR: */
- /* blocked on a remote closure represented by a Global Address: */
-#define BlockedOnGA 8
- /* same as above but without sending a Fetch message */
-#define BlockedOnGA_NoSend 9
/* Only relevant for THREADED_RTS: */
#define BlockedOnCCall 10
#define BlockedOnCCall_Interruptible 11
diff --git a/includes/rts/storage/ClosureMacros.h b/includes/rts/storage/ClosureMacros.h
index d53487326f..03589f2f16 100644
--- a/includes/rts/storage/ClosureMacros.h
+++ b/includes/rts/storage/ClosureMacros.h
@@ -177,12 +177,6 @@ STATIC_LINK(const StgInfoTable *info, StgClosure *p)
}
}
-INLINE_HEADER StgClosure *STATIC_LINK2(const StgInfoTable *info,
- StgClosure *p) {
- return (*(StgClosure**)(&((p)->payload[info->layout.payload.ptrs +
- info->layout.payload.nptrs + 1])));
-}
-
/* -----------------------------------------------------------------------------
INTLIKE and CHARLIKE closures.
-------------------------------------------------------------------------- */
diff --git a/includes/rts/storage/InfoTables.h b/includes/rts/storage/InfoTables.h
index 3de63c8516..b165be2245 100644
--- a/includes/rts/storage/InfoTables.h
+++ b/includes/rts/storage/InfoTables.h
@@ -17,7 +17,7 @@
position-independent code.
Note [x86-64-relative]
- There is a complication on the x86_64 platform, where pointeres are
+ There is a complication on the x86_64 platform, where pointers are
64 bits, but the tools don't support 64-bit relative relocations.
However, the default memory model (small) ensures that all symbols
have values in the lower 2Gb of the address space, so offsets all
@@ -208,7 +208,7 @@ typedef struct StgInfoTable_ {
#ifdef TABLES_NEXT_TO_CODE
StgCode code[];
#endif
-} *StgInfoTablePtr;
+} *StgInfoTablePtr; // StgInfoTable defined in rts/Types.h
/* -----------------------------------------------------------------------------
diff --git a/includes/rts/storage/TSO.h b/includes/rts/storage/TSO.h
index aa3d05745b..fd32919e9d 100644
--- a/includes/rts/storage/TSO.h
+++ b/includes/rts/storage/TSO.h
@@ -184,7 +184,7 @@ typedef struct StgTSO_ {
StgWord32 saved_winerror;
#endif
-} *StgTSOPtr;
+} *StgTSOPtr; // StgTSO defined in rts/Types.h
typedef struct StgStack_ {
StgHeader header;
@@ -242,8 +242,6 @@ void dirty_STACK (Capability *cap, StgStack *stack);
BlockedOnRead NULL blocked_queue
BlockedOnWrite NULL blocked_queue
BlockedOnDelay NULL blocked_queue
- BlockedOnGA closure TSO blocks on BQ of that closure
- BlockedOnGA_NoSend closure TSO blocks on BQ of that closure
tso->link == END_TSO_QUEUE, if the thread is currently running.
@@ -258,13 +256,6 @@ void dirty_STACK (Capability *cap, StgStack *stack);
(tso->sp is left pointing at the top word on the stack so that
the return value or exception will be retained by a GC).
- The 2 cases BlockedOnGA and BlockedOnGA_NoSend are needed in a GUM
- setup only. They mark a TSO that has entered a FETCH_ME or
- FETCH_ME_BQ closure, respectively; only the first TSO hitting the
- closure will send a Fetch message.
- Currently we have no separate code for blocking on an RBH; we use the
- BlockedOnBlackHole case for that. -- HWL
-
---------------------------------------------------------------------------- */
/* this is the NIL ptr for a TSO queue (e.g. runnable queue) */