v8/test
Simon Zünd 82f6179c63 [array] Prevent negative work array capacity when sorting
When allocating large arrays on 32-bit systems, the length conversion
caused the work array capacity to become negative. As the sort range
is currently clamped at kSmiMaxValue anyway, the fix is to also
clamp the work capacity to that value.

R=jgruber@chromium.org

Bug: chromium:967065
Change-Id: I9ea60464c5b7f3796c5389cbaf668b990eddecf6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1630672
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61845}
2019-05-27 10:41:44 +00:00
..
benchmarks [test] Skip flaky test on predictable mode 2019-05-07 13:57:18 +00:00
cctest [wasm] Compile import wrappers in parallel 2019-05-27 09:36:55 +00:00
common Move remaining files in src/ 2019-05-24 18:24:36 +00:00
debugger Revert "[test] Skip debugger tests failing with JSON parsing" 2019-05-20 13:58:05 +00:00
fuzzer Move remaining files in src/ 2019-05-24 18:24:36 +00:00
inspector Move remaining files in src/ 2019-05-24 18:24:36 +00:00
intl [Intl] Fix Null-der READ IsValidExtension<icu_64::Calendar> 2019-05-24 16:32:09 +00:00
js-perf-test Reland "[array] Move Array#sort pre-processing to Torque" 2019-05-24 12:13:17 +00:00
memory [perf] Refactor the Memory benchmark to use d8 2019-05-06 15:10:57 +00:00
message Reland "[stack-trace] Include API functions in Error.stack stack trace" 2019-05-21 10:40:30 +00:00
mjsunit [array] Prevent negative work array capacity when sorting 2019-05-27 10:41:44 +00:00
mkgrokdump Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
mozilla Reland "[array] Move Array#sort pre-processing to Torque" 2019-05-24 12:13:17 +00:00
preparser [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
test262 Implement spec change in some Proxy traps 2019-05-27 05:04:19 +00:00
torque Reland^2 "[torque] move class tests to unittests" 2019-05-24 09:52:53 +00:00
unittests Move unittest files 2019-05-27 08:52:23 +00:00
wasm-js [testrunner] handle timeout param in file 2019-02-27 17:49:17 +00:00
wasm-spec-tests [wasm] Update spec tests 2019-05-22 14:58:45 +00:00
webkit Reland "[array] Move Array#sort pre-processing to Torque" 2019-05-24 12:13:17 +00:00
BUILD.gn [tools] Implement confidence-based number of runs 2019-05-09 09:42:28 +00:00
OWNERS Clean up infra owners 2019-05-15 11:18:43 +00:00