MCPcopy Create free account
hub / github.com/simplejson/simplejson / worker

Function worker

tsan_stress_simplejson.py:306–317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304 samples = JSON_SAMPLES
305
306 def worker():
307 deadline = time.monotonic() + DURATION
308 i = 0
309 for _ in range(ITERATIONS):
310 doc = samples[i % len(samples)]
311 try:
312 scanner(doc, 0)
313 except Exception:
314 pass
315 i += 1
316 if time.monotonic() > deadline:
317 break
318
319 run_scenario("shared scanner (scanner s->memo races)", [worker])
320

Callers 1

wrappedMethod · 0.85

Calls 1

_make_distinct_objectFunction · 0.85

Tested by 1

wrappedMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…