Skip to main content

Module util

Module util 

Source
Expand description

Internal utilities for the Asupersync runtime.

These utilities are intentionally minimal and dependency-free to maintain determinism in the lab runtime.

Re-exports§

pub use arena::Arena;
pub use arena::ArenaIndex;
pub use cache::CachePadded;
pub use cache::CACHE_LINE_SIZE;
pub use det_hash::DetBuildHasher;
pub use det_hash::DetHashMap;
pub use det_hash::DetHashSet;
pub use det_hash::DetHasher;
pub use det_rng::DetRng;
pub use entropy::check_ambient_entropy;
pub use entropy::disable_strict_entropy;
pub use entropy::enable_strict_entropy;
pub use entropy::strict_entropy_enabled;
pub use entropy::DetEntropy;
pub use entropy::EntropySource;
pub use entropy::OsEntropy;
pub use entropy::StrictEntropyGuard;
pub use entropy::ThreadLocalEntropy;
pub use resource::PoolConfig;
pub use resource::PoolExhausted;
pub use resource::ResourceLimits;
pub use resource::ResourceTracker;
pub use resource::SymbolBuffer;
pub use resource::SymbolPool;

Modules§

arena
Arena allocator for runtime records.
cache
Cache-line alignment utilities for hot-path data structures.
det_hash
Deterministic hashing utilities for lab runtime reproducibility.
det_rng
Deterministic pseudo-random number generator.
entropy
Entropy source abstraction for deterministic testing.
resource
Resource limits and memory pools for symbol processing.