1. 12 Jul, 1997 1 commit
  2. 16 May, 1997 1 commit
  3. 07 Apr, 1996 1 commit
  4. 15 Jan, 1996 1 commit
  5. 05 Jan, 1996 1 commit
  6. 28 Mar, 1995 1 commit
    • Richard M. Stallman's avatar
      (r_re_alloc): Correct realloc behavior--allow shrinking · 49f82b3d
      Richard M. Stallman authored
      of blocks while reallocating, if shrinking by more than one page.
      (relocate_blocs, resize_blocs): Added failsafe to protect future
      calling of these routines when in frozen state.
      (r_alloc_thaw): Added call to r_alloc_init.
      (relocate_blocks, resize_bloc, r_alloc_sbrk, r_alloc_thaw): Extended
      functionality to let ralloc package work in frozen state, allowing
      for the existence of unused blocks.
      49f82b3d
  7. 19 Feb, 1995 1 commit
  8. 16 Feb, 1995 2 commits
  9. 14 Feb, 1995 1 commit
  10. 07 Feb, 1995 1 commit
  11. 15 Jan, 1995 1 commit
  12. 23 Oct, 1994 1 commit
    • Richard M. Stallman's avatar
      (struct heap): New fields first_bloc, last_bloc. · 47f13333
      Richard M. Stallman authored
      (struct bp): New field heap.
      (get_bloc, free_bloc, obtain, r_alloc_sbrk): Update new fields.
      (reorder_bloc): New function.
      (update_heap_bloc_correspondence):
      Renamed from update_heap_free_pointers.  Update new fields.
      (relinquish): Add error check for new fields.
      47f13333
  13. 18 Oct, 1994 1 commit
    • Richard M. Stallman's avatar
      (heap_base): Move static var to top level. · abe9ff32
      Richard M. Stallman authored
      (struct heap): New slot `free'.
      (obtain): Set `free' for new heap.
      (get_bloc): Update `free'.
      (find_heap): New function.
      (update_heap_free_pointers): New function.
      (resize_bloc, r_alloc_sbrk): Call update_heap_free_pointers.
      abe9ff32
  14. 12 Oct, 1994 1 commit
  15. 20 Sep, 1994 1 commit
  16. 18 Nov, 1993 1 commit
  17. 10 Sep, 1993 1 commit
  18. 22 Jul, 1993 1 commit
  19. 09 Jun, 1993 1 commit
  20. 26 May, 1993 2 commits
  21. 22 May, 1993 1 commit
  22. 29 Dec, 1992 1 commit
  23. 16 Nov, 1992 1 commit
  24. 24 Oct, 1992 1 commit
  25. 20 Oct, 1992 1 commit
  26. 12 Oct, 1992 3 commits
    • Roland McGrath's avatar
      Removed #include "mem-limits.h". · aef4d570
      Roland McGrath authored
      [emacs]: Moved #undef NULL and #include "getpagesize.h" here.
      [! emacs]: #include <unistd.h>, <malloc.h>, <string.h>.
      (r_alloc_init): Use NIL, not NULL.
      aef4d570
    • Roland McGrath's avatar
      (sbrk): Removed decl. · bbc60227
      Roland McGrath authored
      (real_morecore): New static variable.
      (warnlevel, warn_function, check_memory_limits): Removed.
      (obtain): Don't call check_memory_limits.
      (obtain, relinquish, r_alloc_sbrk): Use (*real_morecore) in place of sbrk;
      it returns 0 for errors, not -1.
      (r_alloc_init): Set real_morecore to old value of __morecore.
      Don't initialize lim_data or warnlevel, and don't call get_lim_data.
      (memory_warnings): Function removed.
      bbc60227
    • Roland McGrath's avatar
      mem_limits.h is now called mem-limits.h. · e231fd42
      Roland McGrath authored
      e231fd42
  27. 11 Oct, 1992 1 commit
    • Richard M. Stallman's avatar
      (check_memory_limits): Reduce warnlevel when usage drops far enough. · 2c46d29f
      Richard M. Stallman authored
      (memory_warnings): New function; just set warning data.
      Use start_of_data if start is 0.
      
      [!emacs]: Don't include config.h or lisp.h;
      instead, use stddef.h.  Define POINTER, SIZE, EXCEEDS_LISP_PTR.
      
      [!emacs] (safe_bcopy): Define as macro using memmove.
      (r_alloc_free): Clear *ptr.
      (r_alloc_init): Renamed from malloc_init.  Take no args.
      Make it static; declare at top of file.
      (r_alloc): Call r_alloc_init, if not initialized yet.
      (r_alloc_initialized): Renamed from malloc_initialized; moved to top.
      (ROUNDUP): Subtract 1, in case arg is already aligned.
      
      (check_memory_limits): EXCEEDS_LISP_PTR renamed from EXCEEDS_ELISP_PTR.
      2c46d29f
  28. 29 Sep, 1992 1 commit
    • Jim Blandy's avatar
      * ralloc.c: Since the users of the relocating allocation code · 98b7fe02
      Jim Blandy authored
      	handle memory exhaustion, it's better to return an error code to
      	them than to call abort.
      	(obtain): If we cannot allocate more memory, don't call
      	abort.  Instead, return non-zero iff the allocation is successful.
      	(get_more_space): If obtain fails, return zero.
      	(get_bloc): Return zero if we can't allocate the new bloc.
      	(r_alloc_sbrk): Return zero if we can't allocate more memory.
      	(r_alloc): If we can't allocate more memory, set *PTR to zero and
      	return zero.
      	(r_re_alloc): If we can't allocate more memory, leave *PTR
      	unchanged, and return zero.
      
      	* ralloc.c (warnfunction): Renamed to warn_function; users changed.
      98b7fe02
  29. 13 Sep, 1992 1 commit
  30. 09 Sep, 1992 1 commit
    • Jim Blandy's avatar
      * ralloc.c (r_re_alloc): Instead of allocating a new bloc at the · 16a5c729
      Jim Blandy authored
      	end of the heap, copying the data to it, and then freeing the
      	original bloc, just expand the original block.  This saves a copy
      	and a call to sbrk, and also removes the large spike in memory
      	allocation that would occur when resizing large buffers.  And it's
      	less code.
      16a5c729
  31. 19 Aug, 1992 1 commit
  32. 30 Jun, 1992 1 commit
  33. 24 Apr, 1992 1 commit
  34. 14 Mar, 1992 1 commit
  35. 13 Jan, 1992 1 commit
  36. 12 Nov, 1990 1 commit