Advertisement
grahamperrin

git commit --amend

May 28th, 2023
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. Use __attribute__((malloc)) on memory allocation functions
  2.  
  3. This informs the C compiler that pointers returned from these functions
  4. do not alias other functions, which allows it to do better code
  5. optimization and should make the compiled code smaller.
  6.  
  7. References:
  8. https://stackoverflow.com/a/53654773
  9. https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-malloc-function-attribute
  10. https://clang.llvm.org/docs/AttributeReference.html#malloc
  11.  
  12. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
  13. Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
  14. Closes #14827
  15.  
  16. # Please enter the commit message for your changes. Lines starting
  17. # with '#' will be ignored, and an empty message aborts the commit.
  18. #
  19. # Author: Richard Yao <richard.yao@alumni.stonybrook.edu>
  20. # Date: Fri May 26 18:47:52 2023 -0400
  21. #
  22. # interactive rebase in progress; onto 0f03a4116
  23. # No commands done.
  24. # Next commands to do (3 remaining commands):
  25. # s 6f2ce494d zfs-create(8): grammar, caution
  26. # s a90829e3a zfs-create(8): ZFS for swap: mention the FAQ doc
  27. # You are currently editing a commit while rebasing branch 'patch-1' on '0f03a4116'.
  28. #
  29. # Changes to be committed:
  30. # modified: include/os/freebsd/spl/sys/kmem.h
  31. # modified: include/os/linux/spl/sys/kmem.h
  32. # modified: include/os/linux/spl/sys/vmem.h
  33. # modified: include/sys/abd.h
  34. # modified: lib/libspl/include/umem.h
  35. #
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement