JitMemoryAllocator.cs 466 B

12345678910111213
  1. using ARMeilleure.Memory;
  2. using Ryujinx.Memory;
  3. namespace Ryujinx.Cpu.Jit
  4. {
  5. public class JitMemoryAllocator : IJitMemoryAllocator
  6. {
  7. public IJitMemoryBlock Allocate(ulong size) => new JitMemoryBlock(size, MemoryAllocationFlags.None);
  8. public IJitMemoryBlock Reserve(ulong size) => new JitMemoryBlock(size, MemoryAllocationFlags.Reserve | MemoryAllocationFlags.Jit);
  9. public ulong GetPageSize() => MemoryBlock.GetPageSize();
  10. }
  11. }