Must allocate environments via GC, otherwise ecl_mark_env -> GC_set_mark_bit fails on us.

o  This restores buildability on win32/MSVC.
This commit is contained in:
Samium Gromoff 2009-04-14 00:58:05 +04:00 committed by Juan Jose Garcia Ripoll
parent 0a841482dc
commit d6f4fa8d37

View file

@ -298,7 +298,7 @@ _ecl_alloc_env()
/* We have not set up any environment. Hence, we cannot call ecl_alloc()
* because it will need to stop interrupts and currently we rely on
* the environment for that */
output = &first_env;
output = GC_MALLOC_IGNORE_OFF_PAGE(sizeof(*output));
} else {
output = ecl_alloc(sizeof(*output));
}