diff options
author | Peter Collingbourne <pcc@google.com> | 2020-02-14 19:19:32 -0800 |
---|---|---|
committer | Peter Collingbourne <pcc@google.com> | 2020-02-18 13:13:57 -0800 |
commit | c8cef93f240551dcaa7389c0d160cdce5254c230 (patch) | |
tree | 185f74781dbee0be7406e987caaa7deafa73b821 /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 3597b0676b6b9c886ced9fb5d0e6e74379965c91 (diff) |
Allow nested usage of ScopedDisableMTE.
An upcoming change to scudo will cause us to start calling
android_unsafe_frame_pointer_chase() from within the allocator. Since this
function uses ScopedDisableMTE, this would otherwise make it unsafe to use
the allocator from within ScopedDisableMTE. This seems like an unreasonable
restriction, so make ScopedDisableMTE save the PSTATE.TCO state in the
constructor and restore it in the destructor.
Bug: 135772972
Change-Id: I47e18d5fb2929efd5a58676488180cd85731007b
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions