Commit 590efb4
Move compile worker stats to ModuleState
Summary:
Move g_compile_workers_attempted and g_compile_workers_retries from
pyjit.cpp global variables into ModuleState members, continuing the
effort to encapsulate JIT mutable state in the ModuleState singleton.
These are only read by `multithreaded_compile_test`, they're not critical.
Reviewed By: yoney
Differential Revision: D96138617
fbshipit-source-id: 590d8e8c07b2ff666299e5d9b3ed5982ba64d5321 parent 5662ceb commit 590efb4
2 files changed
Lines changed: 19 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 99 | | |
103 | 100 | | |
104 | 101 | | |
| |||
947 | 944 | | |
948 | 945 | | |
949 | 946 | | |
950 | | - | |
951 | | - | |
| 947 | + | |
| 948 | + | |
952 | 949 | | |
953 | 950 | | |
954 | 951 | | |
| |||
963 | 960 | | |
964 | 961 | | |
965 | 962 | | |
966 | | - | |
967 | | - | |
| 963 | + | |
| 964 | + | |
968 | 965 | | |
969 | 966 | | |
970 | 967 | | |
| |||
1253 | 1250 | | |
1254 | 1251 | | |
1255 | 1252 | | |
1256 | | - | |
1257 | | - | |
| 1253 | + | |
| 1254 | + | |
1258 | 1255 | | |
1259 | 1256 | | |
1260 | 1257 | | |
| |||
1270 | 1267 | | |
1271 | 1268 | | |
1272 | 1269 | | |
1273 | | - | |
1274 | | - | |
| 1270 | + | |
| 1271 | + | |
1275 | 1272 | | |
1276 | 1273 | | |
1277 | 1274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
200 | 208 | | |
201 | 209 | | |
202 | 210 | | |
| |||
225 | 233 | | |
226 | 234 | | |
227 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
228 | 239 | | |
229 | 240 | | |
230 | 241 | | |
| |||
0 commit comments