Files
mirror_zfs/include/os/linux/spl/sys
Richard Yao 0f03a41161 Use __attribute__((malloc)) on memory allocation functions
This informs the C compiler that pointers returned from these functions
do not alias other functions, which allows it to do better code
optimization and should make the compiled code smaller.

References:
https://stackoverflow.com/a/53654773
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-malloc-function-attribute
https://clang.llvm.org/docs/AttributeReference.html#malloc

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14827
2023-05-26 15:47:52 -07:00
..
2023-01-24 09:04:39 -08:00
2022-01-26 11:38:52 -08:00
2021-06-07 09:02:47 -07:00
2023-04-25 16:05:45 -07:00
2022-01-26 11:38:52 -08:00
2022-05-13 10:15:31 -07:00
2022-10-28 09:49:20 -07:00
2022-09-20 15:32:44 -07:00
2020-10-31 09:40:08 -07:00
2021-05-27 14:27:29 -06:00
2022-06-10 09:51:46 -07:00