Files
node/doc/api
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-05-05 20:24:37 +02:00
2020-04-28 15:23:46 +02:00
2020-04-30 00:24:31 +02:00
2020-04-28 15:23:46 +02:00
2020-04-28 15:23:46 +02:00
2020-04-14 20:22:41 +02:00
2020-03-02 04:07:33 +00:00
2020-05-14 19:57:04 +02:00
2020-04-28 15:23:46 +02:00
2020-05-08 01:10:36 +02:00
2020-04-30 00:24:31 +02:00
2019-10-03 15:21:26 -07:00
2020-05-12 05:39:05 +02:00
2020-03-29 22:43:53 +02:00
2020-04-28 15:23:46 +02:00
2020-04-28 15:23:46 +02:00
2020-04-28 15:23:46 +02:00
2020-05-14 16:52:52 +02:00
2019-10-26 08:39:41 -07:00
2020-04-28 15:23:46 +02:00
2020-04-28 15:23:46 +02:00