Both patches have been upstreamed and are not required anymore. See <https://github.com/microsoft/mimalloc/commit/797ca19ba93bb92f9c7c97923aa3e43485cbb3de> and <https://github.com/microsoft/mimalloc/commit/34cc5c8fd9e84fbfdfa45ed5db5b09f74a448a3b>.
Both patches have been upstreamed and are not required anymore. See <https://github.com/microsoft/mimalloc/commit/797ca19ba93bb92f9c7c97923aa3e43485cbb3de> and <https://github.com/microsoft/mimalloc/commit/34cc5c8fd9e84fbfdfa45ed5db5b09f74a448a3b>.