]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove unused function my_heap_start
authorStefan Kangas <stefankangas@gmail.com>
Tue, 10 Dec 2024 10:43:54 +0000 (11:43 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Feb 2025 11:06:13 +0000 (12:06 +0100)
* src/alloc.c (my_heap_start) [DOUG_LEA_MALLOC && GNU_LINUX]:
Remove unused function.  Update callers.

(cherry picked from commit ad9adab04284213aefc3872a610779dc633ff541)

src/alloc.c
src/lisp.h

index a3f0403eb020daa77ede518eefeb63ba8c406501..9fcf828a918fcae81592029449c9f490d4127e29 100644 (file)
@@ -219,9 +219,6 @@ malloc_initialize_hook (void)
 
   if (! initialized)
     {
-# ifdef GNU_LINUX
-      my_heap_start ();
-# endif
       malloc_using_checking = getenv ("MALLOC_CHECK_") != NULL;
     }
   else
@@ -257,22 +254,6 @@ voidfuncptr __MALLOC_HOOK_VOLATILE __malloc_initialize_hook EXTERNALLY_VISIBLE
 
 #endif
 
-#if defined DOUG_LEA_MALLOC
-# ifdef GNU_LINUX
-
-/* The address where the heap starts.  */
-void *
-my_heap_start (void)
-{
-  static void *start;
-  if (! start)
-    start = sbrk (0);
-  return start;
-}
-# endif
-
-#endif
-
 /* Mark, unmark, query mark bit of a Lisp string.  S must be a pointer
    to a struct Lisp_String.  */
 
index 966568e92cfd5c6fb6dc86547cc90514eb7208ec..5595038f7c713348e5afd388dd7cd30dc18f22ff 100644 (file)
@@ -4422,7 +4422,6 @@ extern void parse_str_as_multibyte (const unsigned char *, ptrdiff_t,
 
 /* Defined in alloc.c.  */
 extern intptr_t garbage_collection_inhibited;
-extern void *my_heap_start (void);
 unsigned char *resize_string_data (Lisp_Object, ptrdiff_t, int, int);
 extern void malloc_warning (const char *);
 extern AVOID memory_full (size_t);