File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -659,7 +659,7 @@ CodePtr CompileParsedFunctionHelper::Compile(CompilationPipeline* pipeline) {
659
659
// those writes are observed atomically.
660
660
//
661
661
thread ()->isolate_group ()->RunWithStoppedMutators (
662
- install_code_fun, install_code_fun, /* use_force_growth=*/ true );
662
+ install_code_fun, /* use_force_growth=*/ true );
663
663
}
664
664
if (!result->IsNull ()) {
665
665
// Must be called outside of safepoint.
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ CodePtr StubCode::GetAllocationStubForClass(const Class& cls) {
220
220
}
221
221
};
222
222
auto bg_compiler_fun = [&]() {
223
- ForceGrowthSafepointOperationScope safepoint_scope (thread );
223
+ ASSERT ( Thread::Current ()-> IsAtSafepoint () );
224
224
stub = cls.allocation_stub ();
225
225
// Check if stub was already generated.
226
226
if (!stub.IsNull ()) {
Original file line number Diff line number Diff line change @@ -226,8 +226,8 @@ CodePtr TypeTestingStubGenerator::BuildCodeForType(const Type& type) {
226
226
// a) We allocate an instructions object, which might cause us to
227
227
// temporarily flip page protections from (RX -> RW -> RX).
228
228
//
229
- thread->isolate_group ()->RunWithStoppedMutators (
230
- install_code_fun, install_code_fun, /* use_force_growth=*/ true );
229
+ thread->isolate_group ()->RunWithStoppedMutators (install_code_fun,
230
+ /* use_force_growth=*/ true );
231
231
232
232
Code::NotifyCodeObservers (name, code, /* optimized=*/ false );
233
233
You can’t perform that action at this time.
0 commit comments