Cosmos/source/Kernel-X86/00-CPU/Cosmos.CPU_Plugs/GCImplementionImpl.cs
2017-07-31 14:41:11 -04:00

22 lines
578 B
C#

using System;
using Cosmos.CPU;
using Cosmos.IL2CPU.API;
namespace Cosmos.CPU_Plugs {
[Plug(Target = typeof(GCImplementation))]
public static class GCImplementionImpl {
public static uint AllocNewObject(uint aSize) {
CPU.Memory.Old.GlobalSystemInfo.EnsureInitialized();
return CPU.Memory.Old.Heap.MemAlloc(aSize);
}
public static void IncRefCount(uint aObject) {
// Do nothing right now
}
public static void DecRefCount(uint aObject) {
// Do nothing right now
}
}
}