This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Commit b10a36b
[vm] Set WasCompiled at safepoint
Setting WasCompiled on a function after unoptimized compilation in the
background thread could race with other modifications of function tags.
To avoid this potential problem, setting of WasCompiled is moved to
FinalizeCompilation which is called at safepoint.
This is a possible fix for flaky assertion failure
../../runtime/vm/compiler/jit/compiler.cc: 901: error: expected: !optimized || function.WasCompiled()
on dartkb/debug bots.
Change-Id: Ia38ddf892438be3314e181cd77c8f8d6cf69978d
Reviewed-on: https://dart-review.googlesource.com/c/80381
Auto-Submit: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>1 parent 27b3f0b commit b10a36b
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| 678 | + | |
678 | 679 | | |
679 | 680 | | |
680 | 681 | | |
| |||
947 | 948 | | |
948 | 949 | | |
949 | 950 | | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
| 951 | + | |
955 | 952 | | |
956 | 953 | | |
957 | 954 | | |
| |||
1216 | 1213 | | |
1217 | 1214 | | |
1218 | 1215 | | |
1219 | | - | |
| 1216 | + | |
| 1217 | + | |
1220 | 1218 | | |
1221 | 1219 | | |
1222 | 1220 | | |
| |||
0 commit comments