emacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-commit] emacs/src alloc.c


From: Stefan Monnier
Subject: [Emacs-commit] emacs/src alloc.c
Date: Tue, 15 Jul 2003 15:20:00 -0400

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Branch:         
Changes by:     Stefan Monnier <monnier+gnu/address@hidden>     03/07/15 
15:20:00

Modified files:
        src            : alloc.c 

Log message:
        Use bitmaps for cons cells, as was done for floats.
        (init_float, init_cons): Let the normal code allocate the first block.
        (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
        (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK): New 
macros.
        (struct cons_block): Move conses to the beginning.  Add gcmarkbits.
        (Fcons): Use lisp_align_malloc and CONS_UNMARK.
        (live_cons_p): Check the pointer is not past the `conses' array.
        (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
        (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
        (survives_gc_p): Use CONS_MARKED_P and simplify.
        (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/src/alloc.c.diff?tr1=1.315&tr2=1.316&r1=text&r2=text





reply via email to

[Prev in Thread] Current Thread [Next in Thread]