• Paul Eggert's avatar
    Bignums from garbage-collect, memory-use-counts · 8b5f05e9
    Paul Eggert authored
    Do not limit the results of garbage-collect and memory-use-counts
    to fixnums, as they might be bignums now on 32-bit hosts.
    * src/lisp.h (byte_ct): New type.
    * src/alloc.c (object_ct): New type.
    (consing_since_gc, gc_relative_threshold)
    (memory_full_cons_threshold, total_string_bytes):
    Now byte_ct, not EMACS_INT.
    (total_conses, total_symbols, total_buffers, total_free_conses)
    (total_free_symbols, total_free_floats, total_floats)
    (total_free_intervals, total_intervals, total_strings)
    (total_free_strings, total_vectors, total_vector_slots)
    (total_free_vector_slots): Now object_ct, not EMACS_INT.
    (bounded_number): Remove.  All uses removed.
    (object_bytes): New function.
    (total_bytes_of_live_objects, garbage_collect_1): Use byte_ct,
    not size_t, to count total GC bytes where multiple objects are
    involved.
    (garbage_collect_1, Fmemory_use_counts):
    Do not limit returned counts to fixnums.
    (sweep_conses, sweep_floats, sweep_intervals, sweep_symbols):
    Use object_ct, not EMACS_INT, to count GC objects.
    8b5f05e9
alloc.c 199 KB