(code refactoring)
* alloc.c (GC_allocobj): Do not check *flh twice if the value
is non-NULL (GC_new_hblk is not called thus *flh stays non-NULL in
that case).
EXIT_GC();
if (*flh == 0) {
GC_new_hblk(gran, kind);
- }
- if (*flh == 0) {
- ENTER_GC();
- if (GC_incremental && GC_time_limit == GC_TIME_UNLIMITED
- && !tried_minor) {
- GC_collect_a_little_inner(1);
- tried_minor = TRUE;
- } else {
- if (!GC_collect_or_expand(1, FALSE, retry)) {
- EXIT_GC();
- return(0);
+ if (*flh == 0) {
+ ENTER_GC();
+ if (GC_incremental && GC_time_limit == GC_TIME_UNLIMITED
+ && !tried_minor) {
+ GC_collect_a_little_inner(1);
+ tried_minor = TRUE;
+ } else {
+ if (!GC_collect_or_expand(1, FALSE, retry)) {
+ EXIT_GC();
+ return(0);
+ }
+ retry = TRUE;
}
- retry = TRUE;
+ EXIT_GC();
}
- EXIT_GC();
}
}
/* Successful allocation; reset failure count. */