pub struct VClockAlloc {
    alloc_ranges: RefCell<RangeMap<MemoryCellClocks>>,
}
Expand description

Vector clock metadata for a logical memory allocation.

Fields

alloc_ranges: RefCell<RangeMap<MemoryCellClocks>>

Assigning each byte a MemoryCellClocks.

Implementations

Create a new data-race detector for newly allocated memory.

Report a data-race found in the program. This finds the two racing threads and the type of data-race that occurred. This will also return info about the memory location the data-race occurred in.

Detect racing atomic read and writes (not data races) on every byte of the current access range

Detect data-races for an unsynchronized read operation, will not perform data-race detection if race_detecting() is false, either due to no threads being created or if it is temporarily disabled during a racy read or write operation for which data-race detection is handled separately, for example atomic read operations.

Detect data-races for an unsynchronized write operation, will not perform data-race threads if race_detecting() is false, either due to no threads being created or if it is temporarily disabled during a racy read or write operation

Detect data-races for an unsynchronized deallocate operation, will not perform data-race threads if race_detecting() is false, either due to no threads being created or if it is temporarily disabled during a racy read or write operation

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 32 bytes