Files
node/doc/api
Anna Henningsen c7c420ec87 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-16 12:43:44 -07:00
..
2020-05-05 19:17:26 +02:00
2020-04-28 23:00:44 +01:00
2020-04-28 23:00:44 +01:00
2020-04-28 23:00:44 +01:00
2020-04-28 23:00:44 +01:00
2020-04-21 11:58:34 +01:00
2020-03-02 04:07:33 +00:00
…
2020-05-16 12:05:05 -07:00
2020-04-28 23:00:44 +01:00
2020-05-11 09:24:37 -07:00
2020-04-29 16:41:52 +01:00
…
2020-05-15 10:44:07 -07:00
2020-03-29 22:43:53 +02:00
2020-04-28 23:00:44 +01:00
2020-04-28 23:00:44 +01:00
2020-04-28 23:00:44 +01:00
…
2020-05-16 12:04:44 -07:00
2020-04-28 23:00:44 +01:00
2020-04-28 23:00:44 +01:00