summaryrefslogtreecommitdiff
path: root/src/alloc.c
AgeCommit message (Collapse)Author
2003-09-19(GC_MALLOC_CHECK): Move conditional undef after lisp.h.Dave Love
2003-09-17Sync with HEAD version.Dave Love
2003-09-11(init_marker): Remove debugging code.Stefan Monnier
2003-09-11(init_intervals, init_symbol, init_marker): Don't preallocate anything.Stefan Monnier
(Fgarbage_collect, mark_object): Ignore the markbit.
2003-09-08*** empty log message ***Kenichi Handa
2003-09-08New directoryKenichi Handa
2003-09-07Use long instead of int when casting ABLOCKS_BUSY toAndreas Schwab
avoid warning.
2003-09-01Add arch taglinesMiles Bader
2003-08-20(lisp_align_malloc): Change type of `aligned'.Dave Love
2003-08-19(lisp_align_malloc): Check for memory full whenGerd Moellmann
allocating ablocks, which also avoids freeing a pointer into an ablocks structure.
2003-08-08(mark_object): Handle Lisp_Misc_Save_Value.Andreas Schwab
2003-07-21(MARK_STRING, UNMARK_STRING, STRING_MARKED_P)Stefan Monnier
(GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than MARKBIT as the gcmarkbit for strings.
2003-07-21(syms_of_alloc): Doc fixes.Richard M. Stallman
2003-07-15Use bitmaps for cons cells, as was done for floats.Stefan Monnier
(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.
2003-07-14(pure, staticvec): Initialize these arrays to nonzero, so that they'rePaul Eggert
not put into BSS by that optimization.
2003-07-14(BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.Stefan Monnier
(lisp_align_malloc): Use posix_memalign is available. (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization. (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK for consistency. Update users.
2003-07-09(mark_object): Mark the new `next' field of overlays.Stefan Monnier
(mark_buffer): Manually mark the overlays_(after|before) fields.
2003-07-07(Fgarbage_collect): Doc fix.Richard M. Stallman
2003-07-06(live_float_p): Check that p is not past the `floats' array,Stefan Monnier
now that `floats' is not the last element of the struct any more.
2003-07-06(mark_object): Change arg to only take Lisp_Object rather than *Lisp_Object.Stefan Monnier
(last_marked): Change accordingly. (mark_interval, mark_maybe_object, mark_maybe_pointer) (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image) (mark_buffer): Update calls to mark_object.
2003-07-06(struct ablock): Only include padding when there is some.Jason Rumney
2003-07-04(ALIGN): Add casts to simplify usage.Stefan Monnier
(BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE) (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros. (struct ablock, struct ablocks): New types. (free_ablock): New global var. (lisp_align_malloc, lisp_align_free): New functions. (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES. (struct float_block): Reorder and add gcmarkbits. (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX) (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros. (init_float, make_float): Use lisp_align_malloc. (free_float, live_float_p): Don't use `type' any more. (make_float): Use FLOAT_UNMARK to access to mark bit. (mark_maybe_object, mark_maybe_pointer, survives_gc_p): Use FLOAT_MARKED_P to access the mark bit. (pure_alloc): Simplify use of ALIGN. (mark_object): Use FLOAT_MARK to access the mark bit. (gc_sweep): Use new macros to access the float's mark bit. (init_alloc_once): Init free_ablock.
2003-06-27(mark_buffer): Fix missed buffer->name in last patch.Stefan Monnier
2003-06-27(VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.Stefan Monnier
(GC_STRING_BYTES): Don't mask markbit (it's only used on `size'). (allocate_buffer): Move. (string_bytes): Don't mask markbit of `size_byte'. (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect) (mark_object, mark_buffer, survives_gc_p, gc_sweep): Use the `size' field of buffers (rather than the `name' field) for the mark bit, as is done for all other vectorlike objects. Use the new macros to access the mark bit of vectorlike objects.
2003-06-26(survives_gc_p): Simplify.Stefan Monnier
(Fmake_marker, free_marker, gc_sweep): Update for new types.
2003-06-25(make_interval, Fmake_symbol, allocate_misc):Stefan Monnier
Initialize the new field `gcmarkbit'. (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field. (mark_interval_tree): Don't mark the tree separately from the nodes. (UNMARK_BALANCE_INTERVALS): Don't unmark the tree. (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect, mark_object) (survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
2003-06-15(mark_kboards): Move to keyboard.c.Stefan Monnier
2003-05-29Comment.Dave Love
2003-05-26(Fgarbage_collect): Fix last change.Andreas Schwab
2003-05-25(Fgarbage_collect): Remove `unused var tail' warning.Stefan Monnier
2003-05-17(Fgarbage_collect): Cast pointers into specpdl to avoid GCC warning.Richard M. Stallman
2003-04-30(abort_on_gc): New variable.Richard M. Stallman
(Fgarbage_collect): Abort if abort_on_gc is set.
2003-04-17(Fmake_byte_code): Improve the `usage' string.Stefan Monnier
2003-04-06(VALIDATE_LISP_STORAGE): Macro deleted. All calls deleted.Richard M. Stallman
(lisp_malloc): Do the work here directly.
2003-03-23(make_string_from_bytes): Add `const' for the argKenichi Handa
CONTENTS. (make_specified_string): Likewise.
2003-03-19(make_specified_string): Fix previous change.Kenichi Handa
2003-02-22(Fgarbage_collect): Don't use XSETFLOAT.Stefan Monnier
2003-02-04Trailing whitespace deleted.Juanma Barranquero
2003-01-30(Vgc_elapsed, gcs_done): New variables.Dave Love
(Fgarbage_collect): Use them. (init_alloc, syms_of_alloc): Set them up.
2003-01-24(mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:Dave Love
Use __alignof__.
2003-01-21(Fgc_status): Print zombie list.Dave Love
(mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]: Fix assignment of zombies. (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]: Don't take car of non-cons.
2003-01-19GTK versionJan Djärv
2003-01-12(pure_alloc): Rewritten and simplified.Kim F. Storm
2003-01-12(pure_alloc): Corrected last change; now align theKim F. Storm
pointer and adjust the size rather than aligning the size and adjusting the pointer. Use a goto to handle overflow exception.
2003-01-10(pure_alloc): Correct alignment for Lisp_Floats.Andreas Schwab
2003-01-06(make_save_value): New function.Richard M. Stallman
2002-12-21Comment change.Richard M. Stallman
2002-11-14(SETJMP_WILL_NOT_WORK): Add note.Dave Love
2002-09-11(Fgarbage_collect): Use pop_message_unwind.Richard M. Stallman
2002-09-01(display_malloc_warning): Use display-warning.Richard M. Stallman
(malloc_warning_1): Function deleted. [ALLOC_DEBUG]: #undef INLINE.