aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (MMAP_MAX_AREAS): New macro.Richard M. Stallman1999-01-021-3/+9
| | | | | (allocate_vectorlike, make_uninit_multibyte_string): Use that. (init_alloc_once): Use that.
* (lisp_malloc, lisp_free): New functions.Richard M. Stallman1998-12-301-56/+103
| | | | | | | | | | | | | | | | | | Use them instead of malloc, xmalloc, and xfree, for Lisp objects. Don't set allocating_for_lisp in the callers; let lisp_malloc do it. (n_interval_blocks, n_float_blocks): New variable. (n_cons_blocks, n_vectors, n_symbol_blocks): New variable. (n_marker_blocks, n_string_blocks): New variable. (init_intervals, make_interval): Set a count variable. Use lisp_malloc instead of setting allocating_for_lisp. (init_float, make_float, init_cons, Fcons): Likewise. (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise (init_marker, allocate_misc, init_strings): Likewise. (make_uninit_multibyte_string): Likewise. (gc_sweep, compact_strings): Decrement the count variables. (uninterrupt_malloc): Don't store Emacs's hooks into the old_..._hook variables.
* (Fgarbage_collect): Block input around most of the function.Richard M. Stallman1998-10-221-0/+4
|
* (mark_kboards): Mark Vlast_prefix_arg too.Richard M. Stallman1998-06-071-0/+1
|
* (mark_kboards): Mark all the Lisp_Object fields.Richard M. Stallman1998-06-071-0/+5
|
* (Fgarbage_collect): Call shrink_regexp_cache.Richard M. Stallman1998-05-241-0/+2
|
* (Fmake_bool_vector): Clear out extraneous bits at end.Richard M. Stallman1998-05-051-1/+5
|
* (Fgarbage_collect): Don't truncate command-history here.Richard M. Stallman1998-04-201-11/+1
|
* Fix -Wimplicit warnings.Andreas Schwab1998-04-141-0/+3
|
* (gc_sweep): Avoid using two loop variables counting theAndreas Schwab1998-04-061-21/+25
| | | | same thing.
* (mark_buffer): Mark the undo_list slot specially;Richard M. Stallman1998-03-281-0/+73
| | | | | | don't mark a marker just cause it is in this list. (Fgarbage_collect): Discard from all undo-lists all elements that adjust markers that were not marked.
* (make_specified_string): New function.Richard M. Stallman1998-03-211-14/+64
| | | | | | | | | | | (make_string_from_bytes): New function. (compact_strings): Get byte size from size, if size_byte < 0. (Fmake_string): Use make_uninit_string for single-byte char. (make_unibyte_string): Mark string as unibyte. (make_uninit_string): Likewise. (make_string): Likewise, if size == size in bytes. (make_pure_string): New arg MULTIBYTE. (Fpurecopy): Pass new arg to make_pure_string.
* Use STRING_BYTES and SET_STRING_BYTES.Richard M. Stallman1998-03-211-4/+4
|
* (gc_sweep, mark_object): Handle new data structureRichard M. Stallman1998-03-121-8/+9
| | | | for struct Lisp_Buffer_Local_Value.
* (Fmake_string): Handle the case INIT is a multibyte character correctly.Richard M. Stallman1998-03-061-6/+28
|
* (list2, list3, list4, list5): New functions.Richard M. Stallman1998-02-051-0/+31
|
* Comment change.Richard M. Stallman1998-01-251-0/+3
|
* Update copyright year.Richard M. Stallman1998-01-211-1/+2
|
* (STRING_BASE_SIZE): New macro.Karl Heuer1998-01-181-7/+10
| | | | | | (STRING_FULLSIZE): Use STRING_BASE_SIZE instead of the whole size of struct Lisp_String. (make_pure_string): Use STRING_FULLSIZE.
* (make_pure_string): New arg length_byte.Richard M. Stallman1998-01-051-14/+60
| | | | | | | | | | | | Take account of size used by size_byte; store both sizes. (Fpurecopy): Call make_pure_string the new way. (compact_strings): Use size_byte field to compute string's size. (make_uninit_multibyte_string): New function. (make_uninit_string): Use make_uninit_multibyte_string. (make_multibyte_string): New function. (make_unibyte_string): New function. (make_string): Compute number of chars from the data.
* (Fmake_marker): Initialize marker's bytepos and charpos.Richard M. Stallman1998-01-021-1/+2
|
* (Fgarbage_collect):Richard M. Stallman1997-12-211-1/+4
| | | | Save message_enable_multibyte and pass it to message2_nolog.
* Comment fix (to avoid "unterminated comment" warning).Karl Heuer1997-12-041-1/+3
|
* (malloc_warning, display_malloc_warning): Return void.Andreas Schwab1997-11-281-0/+7
| | | | (memory_full, free_cons, free_marker): Likewise.
* (gc_sweep): Free memory blocks that contain only unusedKarl Heuer1997-10-151-5/+86
| | | | objects.
* (free_float, free_cons): Don't use the same field for chaining as for marking.Richard M. Stallman1997-09-011-6/+10
| | | | (make_float, Fcons, gc_sweep): Corresponding changes.
* (free_marker): Call unchain_marker.Richard M. Stallman1997-08-291-0/+2
|
* (free_marker): New function.Richard M. Stallman1997-08-131-6/+18
|
* (memory_full): Pass Qnil to Fsignal for ERROR_SYMBOL.Richard M. Stallman1997-07-051-3/+3
| | | | Fix bugs with inappropriate mixing of Lisp_Object with int.
* (Fmake_byte_code): Set val from p, not from val.Richard M. Stallman1997-06-021-2/+2
| | | | (make_event_array): Convert nargs to Lisp_Object.
* (Fmake_bool_vector): Doc fix.Richard M. Stallman1997-05-281-2/+2
|
* (BYTES_USED): Put # at the beginning of line.Kenichi Handa1997-05-161-5/+5
| | | | (emacs_blocked_malloc): Likewise.
* Update copyright year.Richard M. Stallman1997-04-091-1/+1
|
* For glibc's malloc, include <malloc.h> for mallinfo,Richard M. Stallman1997-04-091-3/+39
| | | | | | | | | | | mallopt, struct mallinfo, and mallopt constants. (BYTES_USED): New macro. (memory_full, emacs_blocked_free): Replace _bytes_used with BYTES_USED. (emacs_blocked_malloc): Set sbrk padding value for glibc, as is done with gmalloc. (allocate_vectorlike, make_uninit_string): Prevent using mmap for possible large chunks. (init_alloc_once): Set trim and mmap malloc parms, when using glibc.
* (Fmake_char_table): Adjusted for the new structure ofKenichi Handa1997-04-071-2/+18
| | | | | Lisp_Char_Table. (make_sub_char_table): New function.
* (mark_object): Mark the buffer_list field.Richard M. Stallman1997-03-221-0/+1
|
* (Fmake_char_table): Typo in doc-string fixed. HandleKarl Heuer1997-02-201-2/+5
| | | | | | the case that PURPOSE is nil (in a deeper char-table). (Fmake_bool_vector): Make correct size of Lisp_Object for bool-vector.
* (Fgarbage_collect): Use Vhistory_length for truncating Vcommand_history.Richard M. Stallman1996-11-071-4/+9
|
* (Fmake_char_table): Doc fix.Erik Naggum1996-10-281-1/+1
|
* Comment changes.Erik Naggum1996-09-171-2/+2
|
* (Fmake_symbol): Initialize `obarray' field.Erik Naggum1996-09-171-0/+1
|
* (Fmake_byte_code): Call make_pure_vector using nargs.Richard M. Stallman1996-09-041-1/+1
|
* (Fpurecopy): Cast arg to make_pure_vector.Richard M. Stallman1996-09-031-2/+2
| | | | (Fmake_byte_code): Use XFASTINT when calling make_pure_vector.
* Removed support for !MULTI_FRAME.Karl Heuer1996-09-011-2/+0
|
* (Fgarbage_collect): Report used and free intervals.Richard M. Stallman1996-08-311-7/+13
|
* (syms_of_alloc): Set up Lisp variables ...-consed,Richard M. Stallman1996-08-291-0/+21
| | | | such as Vcons-cells-consed.
* (mark_object): Do set ARRAY_MARK_FLAG for bool-vectors.Richard M. Stallman1996-06-101-1/+7
|
* (garbage_collection_messages): New variable.Richard M. Stallman1996-04-081-5/+15
| | | | | (syms_of_alloc): Set up Lisp variable. (Fgarbage_collect): Variable controls whether to display messages.
* (struct string_block_head): Change to match string_block.Karl Heuer1996-03-061-1/+1
|
* (mark_object): Mark frame title field.Richard M. Stallman1996-01-181-0/+1
|