| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 636652d commit b1e5b8f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2515,12 +2515,12 @@ PyAPI_FUNC(int) PyUnstable_CopyPerfMapFile(const char* parent_filename) { | |||
| 2515 | 2515 | return ret; | |
| 2516 | 2516 | } | |
| 2517 | 2517 | } | |
| 2518 | - char buf[4096]; | ||
| 2519 | - PyThread_acquire_lock(perf_map_state.map_lock, 1); | ||
| 2520 | 2518 | FILE* from = fopen(parent_filename, "r"); | |
| 2521 | 2519 | if (!from) { | |
| 2522 | 2520 | return -1; | |
| 2523 | 2521 | } | |
| 2522 | + char buf[4096]; | ||
| 2523 | + PyThread_acquire_lock(perf_map_state.map_lock, 1); | ||
| 2524 | 2524 | int fflush_result = 0, result = 0; | |
| 2525 | 2525 | while (1) { | |
| 2526 | 2526 | size_t bytes_read = fread(buf, 1, sizeof(buf), from); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments