mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
stdlib: Mark abort
as cold
This helps HotColdSplitting in GCC/LLVM. Thought about doing `exit` as well since its only called once per process, but since its easy to imagine a hot path leading into `exit(0)`, its less clear if its profitable. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
parent
11ad033e1c
commit
e3b0b3484c
@ -727,7 +727,7 @@ extern void *aligned_alloc (size_t __alignment, size_t __size)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Abort execution and generate a core-dump. */
|
/* Abort execution and generate a core-dump. */
|
||||||
extern void abort (void) __THROW __attribute__ ((__noreturn__));
|
extern void abort (void) __THROW __attribute__ ((__noreturn__)) __COLD;
|
||||||
|
|
||||||
|
|
||||||
/* Register a function to be called when `exit' is called. */
|
/* Register a function to be called when `exit' is called. */
|
||||||
|
Loading…
Reference in New Issue
Block a user