Petr Viktorin
01157e0cdf
gh-139116: tracemalloc: Detach thread state when acquiring tables_lock (GH-139449)
...
* gh-139116: tracemalloc: Detach thread state when acquiring tables_lock
This prevents a deadlock when:
- One thread is in `_PyTraceMalloc_Stop`, with `TABLES_LOCK` held, calling
`PyRefTracer_SetTracer` which wants to stop the world
- Another is thread in `PyTraceMalloc_Track`, just attached thread state, waiting
for `TABLES_LOCK`
Detaching the thread state while waiting for `TABLES_LOCK` allows
`PyRefTracer_SetTracer` to stop the world.
Co-authored-by: Peter Bierma <zintensitydev@gmail.com >
2025-09-30 16:43:49 +02:00
..
2025-08-25 15:36:06 +03:00
2025-04-09 16:18:54 -07:00
2025-08-14 14:59:04 +03:00
2025-07-22 16:47:24 +01:00
2025-04-29 02:21:47 +00:00
2025-08-02 11:57:01 +00:00
2025-07-21 08:44:26 +02:00
2025-04-30 11:46:41 +02:00
2025-08-25 15:36:06 +03:00
2025-03-17 09:19:04 +00:00
2024-06-04 10:22:22 +00:00
2025-09-24 14:19:17 +09:00
2025-08-07 11:24:50 -04:00
2025-09-18 14:12:07 +01:00
2025-09-24 11:57:00 +01:00
2025-09-09 21:07:21 +03:00
2025-09-10 15:18:39 +02:00
2025-05-04 21:07:35 +03:00
2024-02-02 13:50:51 +00:00
2024-04-02 20:35:52 +00:00
2025-09-04 17:19:30 +00:00
2025-07-21 17:25:43 -04:00
2025-06-16 17:34:19 -06:00
2025-06-13 16:45:21 -06:00
2025-06-24 12:53:14 -06:00
2025-03-17 12:32:43 +01:00
2025-03-19 23:01:32 +01:00
2025-05-08 15:01:25 +00:00
2025-07-22 15:05:26 +02:00
2025-09-17 15:33:55 +01:00
2025-09-17 15:33:55 +01:00
2025-08-04 14:35:00 +00:00
2025-09-18 10:09:59 +01:00
2025-05-15 21:12:10 +01:00
2025-09-17 09:52:56 -07:00
2025-03-17 09:19:04 +00:00
2025-04-17 13:38:34 -07:00
2024-11-22 18:50:30 +00:00
2025-08-06 14:33:28 +02:00
2024-10-29 23:57:59 +00:00
2025-08-07 16:32:17 -07:00
2024-07-22 12:08:27 -04:00
2025-08-12 10:32:53 -07:00
2025-09-24 14:19:17 +09:00
2025-07-22 16:39:50 +03:00
2024-11-12 15:59:19 +02:00
2025-05-05 15:09:19 +00:00
2025-06-16 23:32:52 +09:00
2025-08-07 09:50:49 -04:00
2023-12-06 15:09:22 +01:00
2025-09-19 06:21:42 -07:00
2025-04-18 02:49:19 +01:00
2025-05-25 20:19:29 +00:00
2025-09-14 20:00:03 +03:00
2025-04-30 11:37:53 +01:00
2025-08-13 14:15:12 -04:00
2025-03-17 09:19:04 +00:00
2025-05-28 20:11:09 +03:00
2025-08-21 10:40:53 +01:00
2025-08-13 14:15:12 -04:00
2025-09-16 09:21:58 +01:00
2025-08-18 18:29:00 +01:00
2025-09-05 16:23:18 +02:00
2024-07-22 12:08:27 -04:00
2025-09-18 14:12:07 +01:00
2025-09-18 10:09:59 +01:00
2025-09-18 10:09:59 +01:00
2025-09-18 10:09:59 +01:00
2025-09-18 10:09:59 +01:00
2025-09-24 14:19:17 +09:00
2025-09-16 09:21:58 +01:00
2025-05-09 11:39:23 +00:00
2025-07-23 10:20:42 +02:00
2025-08-07 14:54:12 -07:00
2025-07-15 10:45:41 +01:00
2024-11-07 16:37:41 +01:00
2024-08-30 15:42:27 +00:00
2025-09-23 19:20:59 +02:00
2025-09-19 12:17:05 +00:00
2024-11-01 22:04:31 +00:00
2025-05-29 14:54:30 +00:00
2025-03-19 13:46:17 +00:00
2025-08-14 20:58:11 +03:00
2025-09-23 21:31:42 +03:00
2025-06-25 00:06:32 -07:00
2025-09-25 00:16:44 +01:00
2025-06-07 19:32:06 +01:00
2025-09-02 01:33:15 +08:00
2025-06-05 18:53:57 +01:00
2025-08-27 17:52:50 +01:00
2025-04-18 21:03:42 +05:30
2025-03-17 09:19:04 +00:00
2025-07-13 21:09:42 +03:00
2025-09-15 12:01:33 +03:00
2025-05-30 10:15:47 +00:00
2024-10-13 20:59:41 +05:30
2025-08-20 17:10:44 +00:00
2025-05-30 10:15:47 +00:00
2024-03-13 23:53:32 +01:00
2025-09-12 18:04:55 +05:30
2025-09-30 16:43:49 +02:00
2025-01-17 16:42:27 +01:00
2025-04-29 12:56:20 +02:00