aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (pure_alloc): After overflow, allocate just a small block.Richard M. Stallman2001-12-161-2/+5
|
* (inhibit_garbage_collection): Don't exceed value an int can hold.Andreas Schwab2001-12-071-1/+3
|
* (Fgarbage_collect): Shrink buffer gaps that areAndrew Innes2001-12-051-1/+19
| | | | excessively large.
* (Flist): Reindent.Pavel Janík2001-11-131-2/+2
| | | | (Fvector): Likewise.
* Update usage of CHECK_ macros (remove unused second argument).Pavel Janík2001-11-021-8/+8
|
* (Fmake_byte_code, Fvector, Flist): Add usage: string to doc string.Miles Bader2001-10-211-5/+8
|
* Reindent DEFUNs with doc: keywords.Pavel Janík2001-10-211-28/+28
|
* Change doc-string comments to `new style' [w/`doc:' keyword].Miles Bader2001-10-171-76/+75
|
* Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimentingKen Raeburn2001-10-161-8/+11
| | | | with lisp system changes.
* Put doc strings in comments.Gerd Moellmann2001-10-141-110/+113
|
* (mark_interval_tree): Use traverse_intervals_noorder.Stefan Monnier2001-10-121-1/+1
|
* Don't define min/max.Gerd Moellmann2001-10-081-3/+0
|
* (inhibit_garbage_collection): Simplify.Gerd Moellmann2001-10-061-23/+9
| | | | (Fmemory_use_counts): Ditto.
* (purebeg, pure_size, pure_bytes_used_before_overflow):Gerd Moellmann2001-10-051-19/+63
| | | | | | | | | | | | | | | | New variables. (init_alloc_once): Initialize new variables. (PURE_POINTER_P): Use new variables. (pure_alloc): If pure storage overflows, allocate from the heap. (check_pure_size): New function. (Fgarbage_collect): Don't GC if pure storage has overflowed. (Vpost_gc_hook, Qpost_gc_hook): New variables. (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook. (Fgarbage_collect): Run post-gc-hook. (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
* Fix a typo in a comment. From Pavel Janik.Eli Zaretskii2001-09-151-1/+1
|
* allocate_buffer): Call VALIDATE_LISP_STORAGE.Gerd Moellmann2001-09-101-2/+5
|
* Remove init_stack static declaration.Gerd Moellmann2001-08-061-1/+0
|
* (live_string_p, live_cons_p, live_symbol_p)Gerd Moellmann2001-03-291-5/+10
| | | | | (live_float_p, live_misc_p): Return 1 only if the offset of the pointer in its block is >= 0.
* (mark_maybe_pointer): Fix a typo in a comment.Eli Zaretskii2001-03-021-1/+1
|
* (toplevel): Include process.h.Gerd Moellmann2001-02-281-9/+252
| | | | | | | | | | | | | | | | | (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE, MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators. (allocate_vectorlike): Make it a static function. Add parameter TYPE. (allocate_vector, allocate_hash_table, allocate_window) (allocate_frame, allocate_process, allocate_other_vector): New functions. (Fmake_vector): Call allocate_vector instead of allocate_vectorlike. (mark_maybe_pointer): New function. (mark_memory): Also mark Lisp data to which only pointers remain and not Lisp_Objects. (min_heap_address, max_heap_address): New variables. (mem_find): Return MEM_NIL if START is below min_heap_address or above max_heap_address. (mem_insert): Compute min_heap_address and max_heap_address.
* (Fmake_list): Add a QUIT in the loop; unroll the loop.Gerd Moellmann2001-01-311-2/+32
|
* * alloc.c (allocate_string) [macintosh]: Call check_string_bytesAndrew Choi2001-01-281-1/+5
| | | | | | | | | | | | | | | | | | | | only if current_sblock has been initialized. * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial terminal frame even if it is the only visible frame. * src/macfns.c (QCconversion): Replaces QCalgorithm. * src/macfns.c (image_ascent, lookup_image): Adapt to change of image margins. * src/macterm.c (x_produce_image_glyph, x_draw_image_foreground) (x_draw_image_relief, x_draw_image_foreground_1) (x_draw_image_glyph_string): Adapt to change of image margins. * src/macterm.c (mac_to_x_fontname): Change charset name of Simplify Chinese fonts from gb2312 to gb2312.1980 and Korean fonts from ksc5601 to ksc5601.1989.
* (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.Gerd Moellmann2001-01-091-50/+88
| | | | | | | | | | | (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions. (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P. (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in the current sblock. (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES. (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes after sweeping strings, and at the end. (GC_CHECK_STRING_BYTES): Moved to lisp.h.
* (Fgarbage_collect): Use a record_unwind_protect toGerd Moellmann2001-01-091-2/+4
| | | | ensure that pop_message is called.
* (gc_sweep): Add comment.Stefan Monnier2000-12-071-0/+3
|
* (gc_sweep): Prevent symbols read during loadupGerd Moellmann2000-12-061-17/+24
| | | | from being freed.
* (Fgarbage_collect): Dox fix. Return a list asGerd Moellmann2000-12-061-8/+8
| | | | advertized by the function documentation.
* (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of hard coded `4'.Kenichi Handa2000-11-231-1/+1
|
* (mark_object) <frame>: Mark tool bar items differently.Gerd Moellmann2000-11-221-2/+1
|
* (make_string): Fix previous change. Be sure to makeKenichi Handa2000-11-201-3/+3
| | | | unibyte string correctly.
* (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeingGerd Moellmann2000-10-231-15/+16
| | | | null.
* (toplevel): Conditionalize compilation of mem_*Gerd Moellmann2000-10-201-1/+6
| | | | functions differently.
* Move #ifdef GC_MARK_STACK back above mem_init where it used to be. mem_z etc ↵Jason Rumney2000-10-201-2/+1
| | | | | | not defined otherwise.
* (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: UndefGerd Moellmann2000-10-201-64/+177
| | | | | | | | | | | | | | | | | GC_MALLOC_CHECK. (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node structure definition and related variabled to the top of the file. Include this code when GC_MALLOC_CHECK is defined. (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't register/unregister allocated region. (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something which isn't allocated. (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning something which is already in use. (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise. (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal. (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal. (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
* (allocate_string) [GC_CHECK_STRING_BYTES]: CallGerd Moellmann2000-10-181-1/+1
| | | | check_string_bytes only if not noninteractive, increase count to 50.
* (pure_bytes_used): Renamed from pureptr.Gerd Moellmann2000-10-171-75/+78
| | | | | | | | (ALIGN): New macro. (pure_alloc): New function. (make_pure_string, pure_cons, make_pure_float, make_pure_vector): Use it. (Fpurecopy): Use PURE_POINTER_P.
* (mark_object) [GC_CHECK_STRING_BYTES]: Check validity ofGerd Moellmann2000-10-171-0/+68
| | | | | | | | string's size_byte. (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function. (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable. (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th string allocated.
* (mark_object): Remove all workarounds installed onAndreas Schwab2000-10-101-29/+9
| | | | 1993-08-08.
* (Fgarbage_collect): Prevent compiler warning for a callEli Zaretskii2000-10-031-1/+3
| | | | to `mark_object'.
* (GC_CHECK_STRING_BYTES): Temporarily define, for bugGerd Moellmann2000-09-261-4/+66
| | | | | | | | | | | | | | hunting. (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's size in the sdata structure. (SDATA_NBYTES, SDATA_DATA): New macros. (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define differently for the different layout of the sdata structure. (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size in sdata. (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]: Check that size recorded in the string size and size recorded in the sdata structure agree.
* (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.Dave Love2000-09-251-7/+5
| | | | | | (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t. (__malloc_extra_blocks): Declare as __malloc_size_t.
* (mark_image): Use GC_NILP instead of NILP.Gerd Moellmann2000-09-251-1/+1
|
* Avoid some more compiler warnings.Gerd Moellmann2000-09-211-3/+6
|
* Add some comments about DOUG_LEA_MALLOC's use of mmapGerd Moellmann2000-09-131-2/+6
| | | | and allocation of Lisp data.
* Include keyboard.h before frame.h.Andrew Innes2000-08-221-1/+1
|
* (lisp_malloc): Declare with POINTER_TYPE.Dave Love2000-08-171-7/+7
| | | | | [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
* (compact_small_strings): Use safe_bcopy, add anGerd Moellmann2000-08-151-1/+2
| | | | assertion.
* [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.Dave Love2000-08-141-2/+7
| | | | | [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk. (lisp_free): Declare and make static.
* (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.Gerd Moellmann2000-08-021-14/+16
| | | | (xrealloc, xmalloc): Use size_t.
* (allocate_string_data): Don't copy old string contents.Gerd Moellmann2000-07-191-2/+1
|