1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5#include "jitpch.h"
6#include "hostallocator.h"
7
8void* HostAllocator::allocateHostMemory(size_t size)
9{
10 assert(g_jitHost != nullptr);
11 return g_jitHost->allocateMemory(size);
12}
13
14void HostAllocator::freeHostMemory(void* p)
15{
16 assert(g_jitHost != nullptr);
17 g_jitHost->freeMemory(p);
18}
19