[jit] Increase x86_64 default code size to full 2GiB hugepage (#318)

Abuses the existence of transparent huge pages on Unix. 4*2 = 8GiB virtual memory used total by JIT. May reduce native host TLB trees.

Signed-off-by: lizzie <lizzie@eden-emu.dev>

Reviewed-on: #318
Reviewed-by: Shinmegumi <shinmegumi@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-08-27 12:10:53 +02:00 committed by crueter
parent 21cd44ec04
commit 3cb8e6111a
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
2 changed files with 2 additions and 2 deletions

View file

@ -215,7 +215,7 @@ std::shared_ptr<Dynarmic::A32::Jit> ArmDynarmic32::MakeJit(Common::PageTable* pa
#ifdef ARCHITECTURE_arm64
config.code_cache_size = std::uint32_t(128_MiB);
#else
config.code_cache_size = std::uint32_t(512_MiB);
config.code_cache_size = std::uint32_t(2_GiB);
#endif
// Allow memory fault handling to work

View file

@ -273,7 +273,7 @@ std::shared_ptr<Dynarmic::A64::Jit> ArmDynarmic64::MakeJit(Common::PageTable* pa
#ifdef ARCHITECTURE_arm64
config.code_cache_size = std::uint32_t(128_MiB);
#else
config.code_cache_size = std::uint32_t(512_MiB);
config.code_cache_size = std::uint32_t(2_GiB);
#endif
// Allow memory fault handling to work