chengyongru and snailak
c758ce8f40
fix(runtime): stop Windows identity polling memory leak
...
Reuse the FILETIME structure and cached kernel32 bindings rather than creating a new ctypes pointer type for every identity query. Python before 3.14 retains those types in its global pointer cache, so idle WebUI and gateway polling could accumulate gigabytes.
Keep each identity query live and preserve the native HANDLE signatures and handle cleanup. Add a native Windows regression that checks identity stability and a bounded set of pointer types, including on Python 3.14 where ctypes no longer retains the types globally.
Fixes #6506
Co-authored-by: snailak <141750781+snailak@users.noreply.github.com >
2026-10-28 11:49:26 +08:00
..
2026-10-27 16:22:33 +08:00
2026-10-18 03:16:25 +08:00
2026-10-21 19:16:56 +08:00
2026-10-05 05:16:33 +08:00
2026-10-26 21:45:36 +08:00
2026-10-26 21:45:36 +08:00
2026-10-18 00:05:14 +08:00
2026-10-25 20:16:51 +08:00
2026-10-22 17:19:20 +08:00
2026-10-25 14:21:47 +08:00
2026-10-21 19:16:56 +08:00
2026-10-28 11:49:26 +08:00
2026-09-10 11:10:51 +08:00
2026-10-25 20:16:51 +08:00
2026-10-26 21:45:36 +08:00
2026-10-23 00:45:10 +08:00
2026-10-10 11:58:04 +08:00
2026-10-27 16:22:33 +08:00
2026-10-25 13:04:53 +08:00
2026-08-03 16:43:01 +08:00
2026-10-27 13:38:17 +08:00
2026-10-27 20:46:47 +08:00
2026-10-26 21:45:36 +08:00
2026-10-18 03:16:25 +08:00
2026-10-16 17:28:47 +08:00
2026-10-06 18:53:50 +08:00
2026-08-25 01:04:25 +08:00
2026-10-21 19:16:56 +08:00
2026-07-28 13:33:06 +08:00
2026-10-21 19:16:56 +08:00
2026-10-19 13:02:26 +08:00
2026-10-18 03:16:25 +08:00
2026-10-18 03:16:25 +08:00
2026-10-18 16:22:53 +08:00
2026-10-13 00:44:25 +08:00
2026-09-28 13:44:51 +08:00
2026-10-21 14:47:55 +08:00
2026-10-23 13:45:14 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-10-23 13:45:14 +08:00
2026-10-16 17:28:47 +08:00
2026-10-24 21:59:12 +08:00
2026-10-24 21:59:12 +08:00
2026-07-15 00:18:37 +08:00
2026-10-23 13:45:14 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-09-03 16:47:23 +08:00
2026-10-05 05:16:33 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-10-27 13:38:17 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-10-21 19:16:56 +08:00
2026-10-23 13:45:14 +08:00
2026-10-21 19:16:56 +08:00