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/amcss.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/amcss.c')
| -rw-r--r-- | mps/code/amcss.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mps/code/amcss.c b/mps/code/amcss.c index a6b47bf1914..236713cdf12 100644 --- a/mps/code/amcss.c +++ b/mps/code/amcss.c | |||
| @@ -182,8 +182,8 @@ static void *test(void *arg, size_t s) | |||
| 182 | die(mps_pool_create(&pool, arena, mps_class_amc(), format, chain), | 182 | die(mps_pool_create(&pool, arena, mps_class_amc(), format, chain), |
| 183 | "pool_create(amc)"); | 183 | "pool_create(amc)"); |
| 184 | 184 | ||
| 185 | die(mps_ap_create(&ap, pool, MPS_RANK_EXACT), "BufferCreate"); | 185 | die(mps_ap_create(&ap, pool, mps_rank_exact()), "BufferCreate"); |
| 186 | die(mps_ap_create(&busy_ap, pool, MPS_RANK_EXACT), "BufferCreate 2"); | 186 | die(mps_ap_create(&busy_ap, pool, mps_rank_exact()), "BufferCreate 2"); |
| 187 | 187 | ||
| 188 | for(i = 0; i < exactRootsCOUNT; ++i) | 188 | for(i = 0; i < exactRootsCOUNT; ++i) |
| 189 | exactRoots[i] = objNULL; | 189 | exactRoots[i] = objNULL; |
| @@ -191,12 +191,12 @@ static void *test(void *arg, size_t s) | |||
| 191 | ambigRoots[i] = rnd_addr(); | 191 | ambigRoots[i] = rnd_addr(); |
| 192 | 192 | ||
| 193 | die(mps_root_create_table_masked(&exactRoot, arena, | 193 | die(mps_root_create_table_masked(&exactRoot, arena, |
| 194 | MPS_RANK_EXACT, (mps_rm_t)0, | 194 | mps_rank_exact(), (mps_rm_t)0, |
| 195 | &exactRoots[0], exactRootsCOUNT, | 195 | &exactRoots[0], exactRootsCOUNT, |
| 196 | (mps_word_t)1), | 196 | (mps_word_t)1), |
| 197 | "root_create_table(exact)"); | 197 | "root_create_table(exact)"); |
| 198 | die(mps_root_create_table(&ambigRoot, arena, | 198 | die(mps_root_create_table(&ambigRoot, arena, |
| 199 | MPS_RANK_AMBIG, (mps_rm_t)0, | 199 | mps_rank_ambig(), (mps_rm_t)0, |
| 200 | &ambigRoots[0], ambigRootsCOUNT), | 200 | &ambigRoots[0], ambigRootsCOUNT), |
| 201 | "root_create_table(ambig)"); | 201 | "root_create_table(ambig)"); |
| 202 | 202 | ||