6 Mar
2025
6 Mar
'25
2:12 p.m.
Jinoh Kang (@iamahuman) commented about dlls/win32u/winstation.c:
return status; }
+#define NB_USER_HANDLES ((LAST_USER_HANDLE - FIRST_USER_HANDLE + 1) >> 1) +#define USER_HANDLE_TO_INDEX(handle) ((LOWORD(handle) - FIRST_USER_HANDLE) >> 1) + +static struct shared_user_object_cache user_objects[NB_USER_HANDLES];
This field alone is taking up ~0.5GiB of virtual memory, per-process. We already have `user_handles`, can we somehow reuse that? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7512#note_96972