Skip to content

Commit 2482ee2

Browse files
Hassnaa9Commit Queue
authored andcommitted
[vm] Fix data race in Function::unoptimized_code (#61800)
Closes #61823 GitOrigin-RevId: 271acaa Change-Id: I0d350dadb93f178edf4288b914dd3c8bf6936254 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/457660 Commit-Queue: Ryan Macnak <[email protected]> Reviewed-by: Ryan Macnak <[email protected]> Reviewed-by: Alexander Markov <[email protected]>
1 parent 4e5f1d7 commit 2482ee2

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

runtime/vm/parser.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ namespace dart {
4747
ParsedFunction::ParsedFunction(Thread* thread, const Function& function)
4848
: thread_(thread),
4949
function_(function),
50-
code_(Code::Handle(zone(), function.unoptimized_code())),
5150
scope_(nullptr),
5251
regexp_compile_data_(nullptr),
5352
function_type_arguments_(nullptr),

runtime/vm/parser.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class ParsedFunction : public ZoneAllocated {
7171
ParsedFunction(Thread* thread, const Function& function);
7272

7373
const Function& function() const { return function_; }
74-
const Code& code() const { return code_; }
7574

7675
LocalScope* scope() const { return scope_; }
7776
void set_scope(LocalScope* scope) {
@@ -294,7 +293,6 @@ class ParsedFunction : public ZoneAllocated {
294293
private:
295294
Thread* thread_;
296295
const Function& function_;
297-
Code& code_;
298296
LocalScope* scope_;
299297
RegExpCompileData* regexp_compile_data_;
300298
LocalVariable* function_type_arguments_;

0 commit comments

Comments
 (0)