diff options
| author | Richard Brooksby | 2012-09-07 12:58:57 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-09-07 12:58:57 +0100 |
| commit | 78d5f049f0e60bd0c903bc331c253f681d082cea (patch) | |
| tree | 2313698d481513796220f50377bdd911fff16bad /mps/code/amcsshe.c | |
| parent | e17fee98ea221678f40bae915dd32c91ccc71922 (diff) | |
| download | emacs-78d5f049f0e60bd0c903bc331c253f681d082cea.tar.gz emacs-78d5f049f0e60bd0c903bc331c253f681d082cea.zip | |
Eliminating type puns on scan states, location dependencies, and allocation points through the mps interface.
Now that we're recommending inlining with client code and optimising with -O2 or -O3, we can't afford any bug introduced by the strict aliasing rule.
Copied from Perforce
Change: 179322
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/amcsshe.c')
| -rw-r--r-- | mps/code/amcsshe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mps/code/amcsshe.c b/mps/code/amcsshe.c index 646f6c4f90b..1b8d3696b88 100644 --- a/mps/code/amcsshe.c +++ b/mps/code/amcsshe.c | |||
| @@ -127,8 +127,8 @@ static void *test(void *arg, size_t s) | |||
| 127 | die(mps_pool_create(&pool, arena, mps_class_amc(), format, chain), | 127 | die(mps_pool_create(&pool, arena, mps_class_amc(), format, chain), |
| 128 | "pool_create(amc)"); | 128 | "pool_create(amc)"); |
| 129 | 129 | ||
| 130 | die(mps_ap_create(&ap, pool, MPS_RANK_EXACT), "BufferCreate"); | 130 | die(mps_ap_create(&ap, pool, mps_rank_exact()), "BufferCreate"); |
| 131 | die(mps_ap_create(&busy_ap, pool, MPS_RANK_EXACT), "BufferCreate 2"); | 131 | die(mps_ap_create(&busy_ap, pool, mps_rank_exact()), "BufferCreate 2"); |
| 132 | 132 | ||
| 133 | for(i = 0; i < exactRootsCOUNT; ++i) | 133 | for(i = 0; i < exactRootsCOUNT; ++i) |
| 134 | exactRoots[i] = objNULL; | 134 | exactRoots[i] = objNULL; |
| @@ -136,16 +136,16 @@ static void *test(void *arg, size_t s) | |||
| 136 | ambigRoots[i] = rnd_addr(); | 136 | ambigRoots[i] = rnd_addr(); |
| 137 | 137 | ||
| 138 | die(mps_root_create_table_masked(&exactRoot, arena, | 138 | die(mps_root_create_table_masked(&exactRoot, arena, |
| 139 | MPS_RANK_EXACT, (mps_rm_t)0, | 139 | mps_rank_exact(), (mps_rm_t)0, |
| 140 | &exactRoots[0], exactRootsCOUNT, | 140 | &exactRoots[0], exactRootsCOUNT, |
| 141 | (mps_word_t)1), | 141 | (mps_word_t)1), |
| 142 | "root_create_table(exact)"); | 142 | "root_create_table(exact)"); |
| 143 | die(mps_root_create_table(&ambigRoot, arena, | 143 | die(mps_root_create_table(&ambigRoot, arena, |
| 144 | MPS_RANK_AMBIG, (mps_rm_t)0, | 144 | mps_rank_ambig(), (mps_rm_t)0, |
| 145 | &ambigRoots[0], ambigRootsCOUNT), | 145 | &ambigRoots[0], ambigRootsCOUNT), |
| 146 | "root_create_table(ambig)"); | 146 | "root_create_table(ambig)"); |
| 147 | die(mps_root_create_table(&bogusRoot, arena, | 147 | die(mps_root_create_table(&bogusRoot, arena, |
| 148 | MPS_RANK_AMBIG, (mps_rm_t)0, | 148 | mps_rank_ambig(), (mps_rm_t)0, |
| 149 | &bogusRoots[0], bogusRootsCOUNT), | 149 | &bogusRoots[0], bogusRootsCOUNT), |
| 150 | "root_create_table(bogus)"); | 150 | "root_create_table(bogus)"); |
| 151 | 151 | ||