Fix build for 32-bit pointersnightly-2022.10.28
commit2e77a94abed3c26ebf0cde90c1f10bd58b2e81a1
authorJames Tyne <[email protected]>
Fri, 28 Oct 2022 02:16:46 +0000 (27 19:16 -0700)
committerFacebook GitHub Bot <[email protected]>
Fri, 28 Oct 2022 02:16:46 +0000 (27 19:16 -0700)
tree95dacf7bcae7fa40c3b75ed79c77a2ff34e71a70
parent981d7f7cd332224baa6fe98babf5476bd843b8a8
Fix build for 32-bit pointers

Summary: Removes the assumption that `uintptr_t` is 64 bits. Instead of hardcoding 52 bits for local IDs, the allocation is now 52 bits when `uintptr_t` is 64 bits and 26 bits when `uintptr_t` is 32 bits.

Reviewed By: roddym

Differential Revision: D40687166

fbshipit-source-id: 3eb9cf9a3a99ffb74f4871504d73fcecc26c91a2
third-party/thrift/src/thrift/lib/cpp2/server/RequestsRegistry.cpp