38be4a17c1
- separated V8StackTraceImpl and AsyncStackTrace,
- V8Debugger owns all AsyncStackTrace and cleanup half of them when limit is reached (first created - first cleaned),
- V8StackTraceImpl, AsyncStackTrace and async-task-related tables in V8Debugger have weak reference to other async stack traces.
- async tasks are cleared with related async stacks.
BUG=v8:6189
R=dgozman@chromium.org
Review-Url: https://codereview.chromium.org/2816043006
Cr-Original-Commit-Position: refs/heads/master@{#44670}
Committed: 1bca73bc83
Review-Url: https://codereview.chromium.org/2816043006
Cr-Commit-Position: refs/heads/master@{#44694}
212 lines
5.6 KiB
Plaintext
212 lines
5.6 KiB
Plaintext
Checks that we drop old async call chains.
|
|
|
|
Running test: testInfrastructure
|
|
setMaxAsyncTaskStacks(1024)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(1024)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(1024)
|
|
Run expression 'console.trace(42)' with async chain len: 5
|
|
actual async chain len: 5
|
|
|
|
setMaxAsyncTaskStacks(1024)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(1024)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(1024)
|
|
Run expression 'console.trace(42)' with async chain len: 5
|
|
actual async chain len: 5
|
|
|
|
|
|
Running test: testZeroLimit
|
|
setMaxAsyncTaskStacks(0)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 0
|
|
|
|
setMaxAsyncTaskStacks(0)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 0
|
|
|
|
setMaxAsyncTaskStacks(0)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 0
|
|
|
|
setMaxAsyncTaskStacks(0)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 0
|
|
|
|
|
|
Running test: testOneLimit
|
|
setMaxAsyncTaskStacks(1)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 0
|
|
|
|
setMaxAsyncTaskStacks(1)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 0
|
|
|
|
setMaxAsyncTaskStacks(1)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(1)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 1
|
|
|
|
|
|
Running test: testTwoLimit
|
|
setMaxAsyncTaskStacks(2)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 0
|
|
|
|
setMaxAsyncTaskStacks(2)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 0
|
|
|
|
setMaxAsyncTaskStacks(2)
|
|
Run expression 'console.trace(42)' with async chain len: 3
|
|
actual async chain len: 0
|
|
|
|
setMaxAsyncTaskStacks(2)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(2)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(2)
|
|
Run expression 'console.trace(42)' with async chain len: 3
|
|
actual async chain len: 1
|
|
|
|
|
|
Running test: testMoreThanTwoLimit
|
|
setMaxAsyncTaskStacks(3)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(3)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 0
|
|
|
|
setMaxAsyncTaskStacks(3)
|
|
Run expression 'console.trace(42)' with async chain len: 3
|
|
actual async chain len: 0
|
|
|
|
setMaxAsyncTaskStacks(3)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(3)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(3)
|
|
Run expression 'console.trace(42)' with async chain len: 3
|
|
actual async chain len: 3
|
|
|
|
setMaxAsyncTaskStacks(4)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(4)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(4)
|
|
Run expression 'console.trace(42)' with async chain len: 3
|
|
actual async chain len: 0
|
|
|
|
setMaxAsyncTaskStacks(4)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(4)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(4)
|
|
Run expression 'console.trace(42)' with async chain len: 3
|
|
actual async chain len: 3
|
|
|
|
setMaxAsyncTaskStacks(5)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(5)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(5)
|
|
Run expression 'console.trace(42)' with async chain len: 3
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(5)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(5)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(5)
|
|
Run expression 'console.trace(42)' with async chain len: 3
|
|
actual async chain len: 3
|
|
|
|
setMaxAsyncTaskStacks(6)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(6)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(6)
|
|
Run expression 'console.trace(42)' with async chain len: 3
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(6)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(6)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(6)
|
|
Run expression 'console.trace(42)' with async chain len: 3
|
|
actual async chain len: 3
|
|
|
|
setMaxAsyncTaskStacks(7)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(7)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(7)
|
|
Run expression 'console.trace(42)' with async chain len: 3
|
|
actual async chain len: 3
|
|
|
|
setMaxAsyncTaskStacks(7)
|
|
Run expression 'console.trace(42)' with async chain len: 1
|
|
actual async chain len: 1
|
|
|
|
setMaxAsyncTaskStacks(7)
|
|
Run expression 'console.trace(42)' with async chain len: 2
|
|
actual async chain len: 2
|
|
|
|
setMaxAsyncTaskStacks(7)
|
|
Run expression 'console.trace(42)' with async chain len: 3
|
|
actual async chain len: 3
|
|
|