Files
node/test/parallel
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-14 12:39:23 -05:00
2020-01-03 01:44:54 +01:00
2020-03-30 10:18:58 +02:00
2020-03-30 10:18:58 +02:00
2020-01-03 01:44:54 +01:00
2019-12-25 12:24:42 +01:00
2019-12-25 12:24:42 +01:00
2020-03-18 16:37:20 -07:00
2020-02-09 13:36:39 +01:00
2020-04-06 01:53:54 +02:00
2020-04-06 01:53:54 +02:00
2020-03-19 10:56:45 +01:00