aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorStefan Kangas2024-12-10 11:43:54 +0100
committerStefan Kangas2024-12-12 22:48:20 +0100
commitad9adab04284213aefc3872a610779dc633ff541 (patch)
tree6d2fafdc7451c311a3328a6108c80a73844ae784 /src/alloc.c
parent892be3b3d7a459808ee47709d0f4e7f65566a6e5 (diff)
downloademacs-ad9adab04284213aefc3872a610779dc633ff541.tar.gz
emacs-ad9adab04284213aefc3872a610779dc633ff541.zip
Remove unused function my_heap_start
* src/alloc.c (my_heap_start) [DOUG_LEA_MALLOC && GNU_LINUX]: Remove unused function. Update callers.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 1e0e5f58e84..e1b0259fa8d 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -219,9 +219,6 @@ malloc_initialize_hook (void)
219 219
220 if (! initialized) 220 if (! initialized)
221 { 221 {
222# ifdef GNU_LINUX
223 my_heap_start ();
224# endif
225 malloc_using_checking = getenv ("MALLOC_CHECK_") != NULL; 222 malloc_using_checking = getenv ("MALLOC_CHECK_") != NULL;
226 } 223 }
227 else 224 else
@@ -257,22 +254,6 @@ voidfuncptr __MALLOC_HOOK_VOLATILE __malloc_initialize_hook EXTERNALLY_VISIBLE
257 254
258#endif 255#endif
259 256
260#if defined DOUG_LEA_MALLOC
261# ifdef GNU_LINUX
262
263/* The address where the heap starts. */
264void *
265my_heap_start (void)
266{
267 static void *start;
268 if (! start)
269 start = sbrk (0);
270 return start;
271}
272# endif
273
274#endif
275
276/* Mark, unmark, query mark bit of a Lisp string. S must be a pointer 257/* Mark, unmark, query mark bit of a Lisp string. S must be a pointer
277 to a struct Lisp_String. */ 258 to a struct Lisp_String. */
278 259