1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-23 23:36:27 -07:00

Disabling the insist comparing the testobj array to the cold end of the stack, since the testobj array is now a static and not comparible.

This commit is contained in:
Richard Brooksby 2023-05-02 16:02:48 +01:00
parent fbd0d0e082
commit a97e2b2c9a

View file

@ -264,14 +264,16 @@ static void test_main(void *cold_stack_end)
have observed a Heisenbug where GCC will inline test_main into
main and lose this condition if the expression below is removed.
This is a problem we are analysing in GitHub issue #210
<https://github.com/Ravenbrook/mps/issues/210>. */
<https://github.com/Ravenbrook/mps/issues/210>. For now, we
disable this Insist to allow the test to run with a static
testobj array. */
#if 0
Insist((void *)&testobj[N_TESTOBJ] <= cold_stack_end);
/* The Insist above ought to prevent an invalid marker message below. */
if ((void *)&testobj[N_TESTOBJ] > cold_stack_end)
printf("Cold stack marker invalid!\n");
else
printf("Cold stack marker probably valid.\n");
#endif
/* Make initial arena size slightly bigger than the test object size to force an extension as early as possible */
obj_size = ALIGN_OBJ(sizeof(test_alloc_obj_s));