• Tyler Smith's avatar
    Cross safe updates use cycle checks (#12726) · 4b1c12ad
    Tyler Smith authored
    * tweak: Make cycle checks work with an OpenBlock that returns BlockRef.
    
    * tests,fix: Make tests generate correct hazard maps.
    
    * tests: Add assertion on returned blockRef.
    
    * tests,fix: Fix TestCrossUnsafeUpdate to use correct mock log count.
    
    * tweak: Call HazardCycleChecks from scopedCrossSafeUpdate and CrossUnsafeUpdate.
    
    * tests,cleanup: Fix test assertion comment.
    
    * tests,fix: Fix TestCrossSafeUpdate.
    4b1c12ad
unsafe_update_test.go 9.91 KB