winterland1989 / stdio

Haskell Standard Input and Output

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix race condition during loop data re-allocation

winterland1989 opened this issue · comments

Although i haven't successfully create such a core dump, but it seems there're possibilities that during loop data re-allocation, we may write to an old location, which is a bad race condition(The chances are too low to meet in practice).

Let's investigate all the possibilities and create a safe solution.

Done by acquire lock in getResult and pokeBufferTable.