Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on java.nio.file.WatchService is subtly broken on Linux. Parent comment
1. Event A is read into a buffer.
2. Event B is read into the same buffer.
3. Event B is processed.
4. Event A is processed.
So, when (4) happens, its buffer from (1) has been clobbered.
1. Event A is read into a buffer.
2. Event B is read into the same buffer.
3. Event B is processed.
4. Event A is processed.
So, when (4) happens, its buffer from (1) has been clobbered.