forked from firka/flutter
Remove AOT specific gates for isolate groups (flutter/engine#30743)
This commit is contained in:
@@ -219,9 +219,7 @@ std::weak_ptr<DartIsolate> DartIsolate::CreateRootIsolate(
|
||||
auto isolate_flags = flags.Get();
|
||||
|
||||
IsolateMaker isolate_maker;
|
||||
// TODO(74520): Remove IsRunningPrecompiledCode conditional once isolate
|
||||
// groups are supported by JIT.
|
||||
if (spawning_isolate && DartVM::IsRunningPrecompiledCode()) {
|
||||
if (spawning_isolate) {
|
||||
isolate_maker = [spawning_isolate](
|
||||
std::shared_ptr<DartIsolateGroupData>*
|
||||
isolate_group_data,
|
||||
|
||||
@@ -57,10 +57,7 @@ static const char* kDartLanguageArgs[] = {
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
// TODO(74520): Remove flag once isolate group work is completed (or add it to
|
||||
// JIT mode).
|
||||
static const char* kDartPrecompilationArgs[] = {"--precompilation",
|
||||
"--enable-isolate-groups"};
|
||||
static const char* kDartPrecompilationArgs[] = {"--precompilation"};
|
||||
|
||||
FML_ALLOW_UNUSED_TYPE
|
||||
static const char* kDartWriteProtectCodeArgs[] = {
|
||||
|
||||
@@ -2821,20 +2821,16 @@ TEST_F(ShellTest, Spawn) {
|
||||
spawn->GetEngine()->GetLastEntrypoint());
|
||||
ASSERT_EQ(initial_route, spawn->GetEngine()->InitialRoute());
|
||||
|
||||
// TODO(74520): Remove conditional once isolate groups are
|
||||
// supported by JIT.
|
||||
if (DartVM::IsRunningPrecompiledCode()) {
|
||||
ASSERT_NE(spawner->GetEngine()
|
||||
->GetRuntimeController()
|
||||
->GetRootIsolateGroup(),
|
||||
0u);
|
||||
ASSERT_EQ(spawner->GetEngine()
|
||||
->GetRuntimeController()
|
||||
->GetRootIsolateGroup(),
|
||||
spawn->GetEngine()
|
||||
->GetRuntimeController()
|
||||
->GetRootIsolateGroup());
|
||||
}
|
||||
ASSERT_NE(spawner->GetEngine()
|
||||
->GetRuntimeController()
|
||||
->GetRootIsolateGroup(),
|
||||
0u);
|
||||
ASSERT_EQ(spawner->GetEngine()
|
||||
->GetRuntimeController()
|
||||
->GetRootIsolateGroup(),
|
||||
spawn->GetEngine()
|
||||
->GetRuntimeController()
|
||||
->GetRootIsolateGroup());
|
||||
});
|
||||
|
||||
PostSync(
|
||||
@@ -2928,20 +2924,16 @@ TEST_F(ShellTest, SpawnWithDartEntrypointArgs) {
|
||||
spawn->GetEngine()->GetLastEntrypoint());
|
||||
ASSERT_EQ(initial_route, spawn->GetEngine()->InitialRoute());
|
||||
|
||||
// TODO(74520): Remove conditional once isolate groups are
|
||||
// supported by JIT.
|
||||
if (DartVM::IsRunningPrecompiledCode()) {
|
||||
ASSERT_NE(spawner->GetEngine()
|
||||
->GetRuntimeController()
|
||||
->GetRootIsolateGroup(),
|
||||
0u);
|
||||
ASSERT_EQ(spawner->GetEngine()
|
||||
->GetRuntimeController()
|
||||
->GetRootIsolateGroup(),
|
||||
spawn->GetEngine()
|
||||
->GetRuntimeController()
|
||||
->GetRootIsolateGroup());
|
||||
}
|
||||
ASSERT_NE(spawner->GetEngine()
|
||||
->GetRuntimeController()
|
||||
->GetRootIsolateGroup(),
|
||||
0u);
|
||||
ASSERT_EQ(spawner->GetEngine()
|
||||
->GetRuntimeController()
|
||||
->GetRootIsolateGroup(),
|
||||
spawn->GetEngine()
|
||||
->GetRuntimeController()
|
||||
->GetRootIsolateGroup());
|
||||
});
|
||||
|
||||
PostSync(
|
||||
|
||||
Reference in New Issue
Block a user