mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
- Implements thread-safe hash table using only atomics and arrays - Uses open addressing with linear probing - Fast lookups: atomic load + string comparison - Slow inserts acceptable (CAS-based insertion) - Includes unit tests and concurrent stress test - All tests pass with 8 threads doing 8000 total increments work on atomic_tbl
4 lines
87 B
Text
4 lines
87 B
Text
(test
|
|
(name atomic_tbl_test)
|
|
(modules atomic_tbl_test)
|
|
(libraries trace_landmarks))
|