Files
node/test/parallel
Anna Henningsen 96bf137cca src: use env->RequestInterrupt() for inspector MainThreadInterface
This simplifies the code significantly, and removes the dependency of
the inspector code on the availability of a `MultiIsolatePlatform`
(by removing the dependency on a platform altogether).

It also fixes a memory leak that occurs when `RequestInterrupt()`
is used, but the interrupt handler is never called before the Isolate
is destroyed.

One downside is that this leads to a slight change in timing, because
inspector messages are not dispatched in a re-entrant way. This means
having to harden one test to account for that possibility by making
sure that the stack is always clear through a `setImmediate()`.
This does not affect the assertion made by the test, which is that
messages will not be delivered synchronously while other code is
executing.

https://github.com/nodejs/node/issues/32415

PR-URL: https://github.com/nodejs/node/pull/32523
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
2020-04-14 11:03:52 +01: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
2019-11-13 17:04:22 +00: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-07 16:30:14 +01:00
2020-04-07 16:30:14 +01:00
2020-03-19 10:56:45 +01:00