Commit 87c81250 authored by Leszek Swirski's avatar Leszek Swirski Committed by Commit Bot

[test] Skip parallel compile tasks tests under off-thread

It is becoming difficult to continue supporting the compiler dispatcher
and background compile task unittests alongside the off-thread
finalization work, so disable those tests when that flag is enabled.

Bug: chromium:1011762
Change-Id: Iba9aaa29b08723afb90edc127609fef1d63ceed5
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2539908
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Auto-Submit: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71211}
parent 5660321a
...@@ -1223,6 +1223,9 @@ DEFINE_BOOL(stress_background_compile, false, ...@@ -1223,6 +1223,9 @@ DEFINE_BOOL(stress_background_compile, false,
DEFINE_BOOL( DEFINE_BOOL(
finalize_streaming_on_background, false, finalize_streaming_on_background, false,
"perform the script streaming finalization on the background thread") "perform the script streaming finalization on the background thread")
// TODO(leszeks): Parallel compile tasks currently don't support off-thread
// finalization.
DEFINE_NEG_IMPLICATION(finalize_streaming_on_background, parallel_compile_tasks)
DEFINE_BOOL(disable_old_api_accessors, false, DEFINE_BOOL(disable_old_api_accessors, false,
"Disable old-style API accessors whose setters trigger through the " "Disable old-style API accessors whose setters trigger through the "
"prototype chain") "prototype chain")
......
...@@ -36,8 +36,6 @@ class CompilerDispatcherTestFlags { ...@@ -36,8 +36,6 @@ class CompilerDispatcherTestFlags {
CHECK_NULL(save_flags_); CHECK_NULL(save_flags_);
save_flags_ = new SaveFlags(); save_flags_ = new SaveFlags();
FLAG_single_threaded = true; FLAG_single_threaded = true;
// TODO(leszeks): Support background finalization in compiler dispatcher.
FLAG_finalize_streaming_on_background = false;
FlagList::EnforceFlagImplications(); FlagList::EnforceFlagImplications();
FLAG_compiler_dispatcher = true; FLAG_compiler_dispatcher = true;
} }
...@@ -105,6 +103,15 @@ class CompilerDispatcherTest : public TestWithNativeContext { ...@@ -105,6 +103,15 @@ class CompilerDispatcherTest : public TestWithNativeContext {
return dispatcher->Enqueue(outer_parse_info.get(), function_name, return dispatcher->Enqueue(outer_parse_info.get(), function_name,
function_literal); function_literal);
} }
protected:
void SetUp() override {
// TODO(leszeks): Support background finalization in compiler dispatcher.
if (FLAG_finalize_streaming_on_background) {
GTEST_SKIP_(
"Parallel compile tasks don't yet support background finalization");
}
}
}; };
namespace { namespace {
......
...@@ -38,8 +38,6 @@ class BackgroundCompileTaskTest : public TestWithNativeContext { ...@@ -38,8 +38,6 @@ class BackgroundCompileTaskTest : public TestWithNativeContext {
static void SetUpTestCase() { static void SetUpTestCase() {
CHECK_NULL(save_flags_); CHECK_NULL(save_flags_);
save_flags_ = new SaveFlags(); save_flags_ = new SaveFlags();
// TODO(leszeks): Support background finalization in compiler dispatcher.
FLAG_finalize_streaming_on_background = false;
TestWithNativeContext::SetUpTestCase(); TestWithNativeContext::SetUpTestCase();
} }
...@@ -87,6 +85,15 @@ class BackgroundCompileTaskTest : public TestWithNativeContext { ...@@ -87,6 +85,15 @@ class BackgroundCompileTaskTest : public TestWithNativeContext {
isolate->counters()->compile_function_on_background(), FLAG_stack_size); isolate->counters()->compile_function_on_background(), FLAG_stack_size);
} }
protected:
void SetUp() override {
// TODO(leszeks): Support background finalization in compiler dispatcher.
if (FLAG_finalize_streaming_on_background) {
GTEST_SKIP_(
"Parallel compile tasks don't yet support background finalization");
}
}
private: private:
AccountingAllocator* allocator_; AccountingAllocator* allocator_;
static SaveFlags* save_flags_; static SaveFlags* save_flags_;
......
...@@ -59,7 +59,8 @@ INCOMPATIBLE_FLAGS_PER_VARIANT = { ...@@ -59,7 +59,8 @@ INCOMPATIBLE_FLAGS_PER_VARIANT = {
"slow_path": ["--no-force-slow-path"], "slow_path": ["--no-force-slow-path"],
"stress_concurrent_allocation": ["--single-threaded-gc", "--predictable"], "stress_concurrent_allocation": ["--single-threaded-gc", "--predictable"],
"stress_incremental_marking": ["--no-stress-incremental-marking"], "stress_incremental_marking": ["--no-stress-incremental-marking"],
"stress_js_bg_compile_wasm_code_gc": ["--no-stress-background-compile"], "future": ["--parallel-compile-tasks"],
"stress_js_bg_compile_wasm_code_gc": ["--no-stress-background-compile", "--parallel-compile-tasks"],
"stress": ["--no-stress-opt", "--always-opt", "--no-always-opt", "--liftoff", "--max-inlined-bytecode-size=*", "stress": ["--no-stress-opt", "--always-opt", "--no-always-opt", "--liftoff", "--max-inlined-bytecode-size=*",
"--max-inlined-bytecode-size-cumulative=*", "--stress-inline"], "--max-inlined-bytecode-size-cumulative=*", "--stress-inline"],
"turboprop": ["--interrupt-budget=*", "--no-turboprop"], "turboprop": ["--interrupt-budget=*", "--no-turboprop"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment