Skip to content
  • Nobuyoshi Nakada's avatar
    3acc81d9
    Fixed race in dtoa [Bug #17612] · 3acc81d9
    Nobuyoshi Nakada authored
    
    
    Fixed the race condition when replacing `freelist` entry with its
    chained next element.  At acquiring an entry, hold the entry once
    with the special value, then release by replacing it with the next
    element again after acquired.  If another thread is holding the
    same entry at that time, spinning until the entry gets released.
    
    Co-Authored-By: default avatarKoichi Sasada <ko1@atdot.net>
    3acc81d9
    Fixed race in dtoa [Bug #17612]
    Nobuyoshi Nakada authored
    
    
    Fixed the race condition when replacing `freelist` entry with its
    chained next element.  At acquiring an entry, hold the entry once
    with the special value, then release by replacing it with the next
    element again after acquired.  If another thread is holding the
    same entry at that time, spinning until the entry gets released.
    
    Co-Authored-By: default avatarKoichi Sasada <ko1@atdot.net>
Loading