v8/test
Jaroslav Sevcik 4c3266841c [inspector] Handle instrumentation break with multiple sessions
Currently, any session can resume instrumentation breaks by sending
Debugger.resume command. That can lead to unreliable breakpoint
placement because sessions can resume too early.

The early resumption can happen in two ways:

- When we have two instrumented sessions, the first one to resume
  can prevent the other one from setting its breakpoints
  before executing the code.

- With one instrumented session and one without instrumentation
  breakpoints, the uninstrumented session's Debugger.resume
  command can resume the instrumentation pause before the
  instrumented session can set its breakpoints.

This patch fixes both of these issues by changing the instrumentation
pause resumption logic to take note of the sessions that were notified
about the instrumentation breakpoints. The debugger will only resume
once all those sessions resume (or disconnect).

Bug: chromium:1354043
Change-Id: I84cf16b57187dbb40645b2f7ec2e08f0078539dc
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4100466
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#84827}
2022-12-14 06:01:22 +00:00
..
benchmarks Re-enable octane/typescript for deopt_fuzzer 2022-09-09 08:34:45 +00:00
bigint [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
cctest [rab/gsab,api] Add resizable BackingStore creation 2022-12-14 01:54:00 +00:00
common [wasm-gc] Add new br_on_cast_fail variant taking a heap type immediate 2022-12-08 14:53:37 +00:00
debugger Revert "[wasm] Compile debug code lazily" 2022-12-05 18:55:17 +00:00
debugging [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
fuzzer [wasm] Do not validate asm.js code 2022-12-13 17:46:59 +00:00
fuzzilli [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
inspector [inspector] Handle instrumentation break with multiple sessions 2022-12-14 06:01:22 +00:00
intl [test] Mark slow tests as slow on debug mode 2022-12-09 10:24:47 +00:00
js-perf-test [js-perf-test] Reduce input sizes for small BigInts 2022-10-06 14:23:53 +00:00
memory
message Resolved an issue where an earlier error was not reported first in certain cases 2022-11-11 13:43:32 +00:00
mjsunit Revert "[maglev] Enable --maglev with --future" 2022-12-13 17:25:07 +00:00
mkgrokdump [heap] Rename safepoint scopes 2022-10-25 16:32:55 +00:00
mozilla [mips32] Delete mips32 from v8 2022-09-13 07:54:54 +00:00
test262 [Intl] Throw errow while passing roundingIncrement 2022-12-06 20:01:33 +00:00
torque Reland "Reland "[Torque] Generalize Torque literals to larger size"" 2022-02-04 09:40:24 +00:00
unittests [wasm] Do not validate asm.js code 2022-12-13 17:46:59 +00:00
wasm-api-tests [wasm] Always use the engine allocator for decoded modules 2022-12-02 12:22:06 +00:00
wasm-js [wasm] Update spec tests 2022-11-22 12:00:15 +00:00
wasm-spec-tests [wasm] Update spec tests 2022-11-22 12:00:15 +00:00
webkit [mips32] Delete mips32 from v8 2022-09-13 07:54:54 +00:00
BUILD.gn [test] Move cctest/interpreter to unittests 2022-06-10 08:37:10 +00:00
OWNERS