@@ -2973,22 +2973,20 @@ arena_map_mark_used(uintptr_t arena_base, int is_used)
2973
2973
* again (do the full tree traversal).
2974
2974
*/
2975
2975
n_hi -> arenas [i3 ].tail_hi = is_used ? tail : 0 ;
2976
- uintptr_t arena_next = arena_base + ARENA_SIZE ;
2977
- /* If arena_base is a legit arena address, so is arena_next - 1
2978
- * (last address in arena). If arena_next overflows then it
2976
+ uintptr_t arena_base_next = arena_base + ARENA_SIZE ;
2977
+ /* If arena_base is a legit arena address, so is arena_base_next - 1
2978
+ * (last address in arena). If arena_base_next overflows then it
2979
2979
* must overflow to 0. However, that would mean arena_base was
2980
2980
* "ideal" and we should not be in this case. */
2981
- assert (arena_base < arena_next );
2982
- if (arena_next > arena_base ) {
2983
- arena_map3_t * n_lo = arena_map_get ((block * )arena_next , is_used );
2984
- if (n_lo == NULL ) {
2985
- assert (is_used ); /* otherwise should already exist */
2986
- n_hi -> arenas [i3 ].tail_hi = 0 ;
2987
- return 0 ; /* failed to allocate space for node */
2988
- }
2989
- int i3_next = MAP3_INDEX (arena_next );
2990
- n_lo -> arenas [i3_next ].tail_lo = is_used ? tail : 0 ;
2981
+ assert (arena_base < arena_base_next );
2982
+ arena_map3_t * n_lo = arena_map_get ((block * )arena_base_next , is_used );
2983
+ if (n_lo == NULL ) {
2984
+ assert (is_used ); /* otherwise should already exist */
2985
+ n_hi -> arenas [i3 ].tail_hi = 0 ;
2986
+ return 0 ; /* failed to allocate space for node */
2991
2987
}
2988
+ int i3_next = MAP3_INDEX (arena_base_next );
2989
+ n_lo -> arenas [i3_next ].tail_lo = is_used ? tail : 0 ;
2992
2990
}
2993
2991
return 1 ;
2994
2992
}
0 commit comments