File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ Tag StringTag;
4242static Space * new , * old , * pspace ;
4343#if GCPROTECT
4444static Space * spaces ;
45- /* FIXME: static Space *pspaces; */
4645#endif
4746static Root * globalrootlist , * exceptionrootlist ;
4847static size_t minspace = MIN_minspace ; /* minimum number of bytes in a new space */
@@ -207,7 +206,7 @@ static void deprecate(Space *space) {
207206 assert (space != NULL );
208207 for (base = space ; base -> next != NULL ; base = base -> next )
209208 ;
210- assert (& spaces [0 ] <= base && base < & spaces [NSPACES ]);
209+ assert (space == pspace || ( & spaces [0 ] <= base && base < & spaces [NSPACES ]) );
211210 for (;;) {
212211 invalidate (space -> bot , SPACESIZE (space ));
213212 if (space == base )
@@ -527,7 +526,9 @@ extern void *pseal(void *p) {
527526#endif
528527 deprecate (pspace );
529528#if GCPROTECT
530- pspace = mkspace (base , NULL , minpspace );
529+ /* TODO: integrate pspace with GCPROTECT better? */
530+ /* pspace = mkspace(base, NULL, minpspace); */
531+ pspace = newpspace (NULL );
531532#else
532533 pspace = newpspace (NULL );
533534#endif
You can’t perform that action at this time.
0 commit comments