aboutsummaryrefslogtreecommitdiffstats
path: root/admin/notes/java
diff options
context:
space:
mode:
authorPaul Eggert2025-01-15 23:32:43 -0800
committerPaul Eggert2025-01-17 15:56:30 -0800
commitd3a2ec5210746a942263d5e18ee3b8190b9698e1 (patch)
treee5f9974259a48a557c12387ea1fd4e297e644354 /admin/notes/java
parent29794c71452c58c596c58fd6148741d213d3ee7b (diff)
downloademacs-d3a2ec5210746a942263d5e18ee3b8190b9698e1.tar.gz
emacs-d3a2ec5210746a942263d5e18ee3b8190b9698e1.zip
Simplify alloc by assuming MALLOC_IS_LISP_ALIGNED
Problem reported by Hong Xu <https://bugs.gnu.org/75551#14>. * src/alloc.c (MALLOC_IS_LISP_ALIGNED): static_assert it, since it is true on all current Emacs platforms. All uses simplified to assume it is true. (xmalloc, xzalloc, xrealloc, lisp_malloc): Just use malloc/calloc/realloc. Since we are using the malloc-gnu and realloc-posix modules, we need not worry about whether these functions return a null pointer for zero-size requests. (xrealloc): Stop worrying about no-longer-existing platforms where realloc (nullptr, ...) did not work. (laligned, lmalloc, lrealloc): Remove. All uses removed.
Diffstat (limited to 'admin/notes/java')
0 files changed, 0 insertions, 0 deletions