Struct js::jsapi::AutoSuppressGCAnalysis [] [src]

#[repr(C)]
pub struct AutoSuppressGCAnalysis { pub _base: AutoAssertNoAlloc, }

Disable the static rooting hazard analysis in the live region and assert if any allocation that could potentially trigger a GC occurs while this guard object is live. This is most useful to help the exact rooting hazard analysis in complex regions, since it cannot understand dataflow.

Note: GC behavior is unpredictable even when deterministic and is generally non-deterministic in practice. The fact that this guard has not asserted is not a guarantee that a GC cannot happen in the guarded region. As a rule, anyone performing a GC unsafe action should understand the GC properties of all code in that region and ensure that the hazard analysis is correct for that code, rather than relying on this class.

Fields

Trait Implementations

impl Debug for AutoSuppressGCAnalysis
[src]

[src]

Formats the value using the given formatter.

impl Copy for AutoSuppressGCAnalysis
[src]

impl Clone for AutoSuppressGCAnalysis
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more