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?