Enum android_manifest::GwpAsanMode [−][src]
pub enum GwpAsanMode {
Never,
Always,
}Expand description
GWP-ASan is a native memory allocator feature that helps find use-after-free and
heap-buffer-overflow bugs.
Variants
Always disabled: This setting completely disables GWP-ASan in your app and is the default for non-system apps.
Always enabled: This setting enables GWP-ASan in your app, which includes the following:
- The operating system reserves a fixed amount of RAM for GWP-ASan operations, approximately ~70KiB for each affected process. (Enable GWP-ASan if your app is not critically sensitive to increases in memory usage.)
- GWP-ASan intercepts a randomly-chosen subset of heap allocations and places them into a special region that reliably detects memory safety violations.
- When a memory safety violation occurs in the special region, GWP-ASan terminates the process.
- GWP-ASan provides additional information about the fault in the crash report.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
fn serialize_attributes(
&self,
source_attributes: Vec<OwnedAttribute>,
source_namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>[src]Auto Trait Implementations
impl RefUnwindSafe for GwpAsanModeimpl Send for GwpAsanModeimpl Sync for GwpAsanModeimpl Unpin for GwpAsanModeimpl UnwindSafe for GwpAsanModeBlanket Implementations
Mutably borrows from an owned value. Read more