diff options
| author | Richard Kistruck | 2008-11-11 16:22:26 +0000 |
|---|---|---|
| committer | Richard Kistruck | 2008-11-11 16:22:26 +0000 |
| commit | 32031684e22770a55c1cb1ea080e4b507f98a8c8 (patch) | |
| tree | 5e3f6e89b3d2a01a595949bf7325fe002c233194 /mps/code | |
| parent | 752f83c827fa11fb1473c378b870f04c48fabf34 (diff) | |
| download | emacs-32031684e22770a55c1cb1ea080e4b507f98a8c8.tar.gz emacs-32031684e22770a55c1cb1ea080e4b507f98a8c8.zip | |
Mps br/timing: mpsi_check(): check that external and internal messsage types match.
Copied from Perforce
Change: 166696
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/mpsi.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mps/code/mpsi.c b/mps/code/mpsi.c index e5f88fc8541..f27d1b7dec5 100644 --- a/mps/code/mpsi.c +++ b/mps/code/mpsi.c | |||
| @@ -91,6 +91,18 @@ static Bool mpsi_check(void) | |||
| 91 | CHECKL((int)MPS_RANK_EXACT == (int)RankEXACT); | 91 | CHECKL((int)MPS_RANK_EXACT == (int)RankEXACT); |
| 92 | CHECKL((int)MPS_RANK_WEAK == (int)RankWEAK); | 92 | CHECKL((int)MPS_RANK_WEAK == (int)RankWEAK); |
| 93 | 93 | ||
| 94 | /* Check that external and internal messsage types match. */ | ||
| 95 | /* See <code/mps.h#message.types> and */ | ||
| 96 | /* <code/mpmtypes.h#message.types>. */ | ||
| 97 | /* Also see .check.enum.cast. */ | ||
| 98 | CHECKL(CHECKTYPE(mps_message_type_t, MessageType)); | ||
| 99 | CHECKL((int)MessageTypeFINALIZATION | ||
| 100 | == (int)MPS_MESSAGE_TYPE_FINALIZATION); | ||
| 101 | CHECKL((int)MessageTypeGC | ||
| 102 | == (int)MPS_MESSAGE_TYPE_GC); | ||
| 103 | CHECKL((int)MessageTypeGCSTART | ||
| 104 | == (int)MPS_MESSAGE_TYPE_GC_START); | ||
| 105 | |||
| 94 | /* The external idea of a word width and the internal one */ | 106 | /* The external idea of a word width and the internal one */ |
| 95 | /* had better match. See <design/interface-c/#cons>. */ | 107 | /* had better match. See <design/interface-c/#cons>. */ |
| 96 | CHECKL(sizeof(mps_word_t) == sizeof(void *)); | 108 | CHECKL(sizeof(mps_word_t) == sizeof(void *)); |