Skip to content
  • Ben Gamari's avatar
    78a5bdff
    rts: Avoid data races in StablePtr implementation · 78a5bdff
    Ben Gamari authored
    This fixes two potentially problematic data races in the StablePtr
    implementation:
    
     * We would fail to RELEASE the stable pointer table when enlarging it,
       causing other cores to potentially see uninitialized memory.
    
     * We would fail to ACQUIRE when dereferencing a stable pointer.
    78a5bdff
    rts: Avoid data races in StablePtr implementation
    Ben Gamari authored
    This fixes two potentially problematic data races in the StablePtr
    implementation:
    
     * We would fail to RELEASE the stable pointer table when enlarging it,
       causing other cores to potentially see uninitialized memory.
    
     * We would fail to ACQUIRE when dereferencing a stable pointer.
Loading