Files
node/lib
Anna Henningsen d3a8a23089 fs: forbid concurrent operations on Dir handle
libuv does not expect concurrent operations on `uv_dir_t` instances,
and will gladly create memory leaks, corrupt data, or crash the
process.

This patch forbids that, and:

- Makes sure that concurrent async operations are run sequentially
- Throws an exception if sync operations are attempted during an
  async operation

The assumption here is that a thrown exception is preferable to
a potential hard crash.

This fully fixes flakiness from `parallel/test-fs-opendir` when
run under ASAN.

PR-URL: https://github.com/nodejs/node/pull/33274
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2020-05-15 19:36:50 +02:00
..
2020-02-18 22:15:50 -08:00
2019-12-17 08:11:13 -05:00
2020-05-14 16:52:52 +02:00
2020-05-09 08:04:10 +02:00
2020-04-07 20:35:07 +02:00
2020-04-02 23:38:32 +02:00
2020-03-09 12:44:16 +01:00
2020-04-28 19:10:26 +02:00
2020-04-14 13:54:21 +08:00
2019-12-11 16:38:06 -06:00