Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ASan][libc++] Optimize __annotate_delete for the default allocator #76176

Closed

Commits on Dec 22, 2023

  1. [ASan][libc++] Optimize __annotate_delete for the default allocator

    This commit optimizes the ASan helper functions `__annotate_delete()`, in `std::basic_string`, `std::vector` and `std::deque`, by adding `if` statements to prevent unpoisoning of memory for the default allocator. Unpoisoning is not required by the default allocator, and since it is widely used, this optimization should yield a meaningful performance improvement.
    
    The optimization was suggested by @EricWF.
    Advenam Tacet committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    d55a13c View commit details
    Browse the repository at this point in the history
  2. C++03 fix

    Advenam Tacet committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    418cdd7 View commit details
    Browse the repository at this point in the history
  3. if constexpr since C++17

    Advenam Tacet committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    629e007 View commit details
    Browse the repository at this point in the history