lloc&gt;);

pub struct Talloc {
    primary: Allocator,
    backup: BackUpAllocator,

    /// bitmap for each CPU to decide which allocator to use
    flags: [AtomicU32; NUM_MAX_CPU / 32],

    primary_start: AtomicUsize,
    primary_size: AtomicUsize,
    backup_start: AtomicUsize,
    backup_size: AtomicUsize,
}
<span class="boring">}</span></code></pre></pre>
<p>The <code>Talloc</code> structure is defined as a global allocator as follows.</p>
<pre><pre class="playground"><code class="language-rust"><spa