viable/strict/1792450275: Fix shared JSON race in AOTI package loading (#201261) (#201261)
- PyTorch: 2574 events in the last 90 days
- PyTorch: 2539th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1792448829
What happened
Summary: Make load_json_file return a local JSON value. Concurrent package loads currently mutate the same static object and can corrupt the heap. Test Plan: buck build fbcode//caffe2:_libtorch Differential Revision: D125778988 Pull Request resolved: #201261 Approved by: https://github.com/Skylion007
Summary assembled by rule from the sources below