[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/no-purespace 2a97c745ab8: Remove unused function my_heap_start
From: |
Stefan Kangas |
Subject: |
scratch/no-purespace 2a97c745ab8: Remove unused function my_heap_start |
Date: |
Tue, 10 Dec 2024 05:47:47 -0500 (EST) |
branch: scratch/no-purespace
commit 2a97c745ab8d7837ecfb0d5b7d59b82f1385bf0f
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Remove unused function my_heap_start
* src/alloc.c (my_heap_start) [DOUG_LEA_MALLOC && GNU_LINUX]:
Remove unused function. Update callers.
---
src/alloc.c | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/src/alloc.c b/src/alloc.c
index 354d01f5a58..98f3bd6c555 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -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. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- scratch/no-purespace 2a97c745ab8: Remove unused function my_heap_start,
Stefan Kangas <=