Raxol.Core.CompilerState (Raxol v2.0.1)
View SourceThread-safe ETS table management for parallel compilation.
Fixes race conditions causing: "table identifier does not refer to an existing ETS table" during parallel compilation processes accessing shared ETS tables.
REFACTORED: All try/rescue blocks replaced with functional patterns.
Summary
Functions
Ensure ETS table exists with safe concurrency.
Safe ETS delete with existence check.
Safe ETS table deletion with existence check.
Safe ETS insert with existence check.
Safe ETS lookup with existence check.
Functions
Ensure ETS table exists with safe concurrency.
This function handles race conditions where multiple processes might try to create the same ETS table simultaneously during parallel compilation.
Safe ETS delete with existence check.
Performs ETS delete operations with proper error handling for cases where the table might have been deleted by another process.
Safe ETS table deletion with existence check.
Deletes an entire ETS table with proper error handling.
Safe ETS insert with existence check.
Performs ETS insert operations with proper error handling for cases where the table might have been deleted by another process.
Safe ETS lookup with existence check.
Performs ETS lookup operations with proper error handling for cases where the table might have been deleted by another process.