1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 12:20:39 -08:00

Platform alignment is 16 on w3i6mv, so use mps_pf_align to avoid alignment failure.

Copied from Perforce
 Change: 192456
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2016-09-26 16:13:39 +01:00
parent afbc6e32d7
commit 5f3e5f5ed3

View file

@ -37,8 +37,8 @@ static void test(void)
for (p=0; p<ITERATE; p++) {
die(mps_alloc(&q, pool, PROMISE*1024), "alloc");
q = (mps_addr_t) ((char *) q + 8);
mps_free(pool, q, PROMISE*1024-8);
q = (mps_addr_t) ((char *) q + MPS_PF_ALIGN);
mps_free(pool, q, PROMISE*1024-MPS_PF_ALIGN);
report("promise", "%i", p);
}