]> Repositorios git - scryer-prolog.git/commit
RawBlock: switch to Cell or AtomicPtr instead of UnsafeCell
authorEmilie Burgun <[email protected]>
Sun, 10 May 2026 17:21:36 +0000 (19:21 +0200)
committerEmilie Burgun <[email protected]>
Sun, 10 May 2026 20:36:11 +0000 (22:36 +0200)
commitad614b684ced51d1d34aa7882be2c02c5f29ae1b
treedaee427b94e9408b1e80cc9157d2acfa0d7995bb
parent898b6b2b251dc84224fe06c6af1f2187f60d5d6c
RawBlock: switch to Cell or AtomicPtr instead of UnsafeCell

This is the first step towards enabling multithreading on AtomTable.

For now RawBlock will default to using Cell, which yields a byte-
equivalent compiled output.

Also adds an `atomic` feature, which, when enabled, will make RawBlock
use an AtomicPtr instead, ensuring that it implements `Sync`.
src/offset_table.rs
src/raw_block.rs