Cosmos/source/Kernel-X86/00-CPU/Cosmos.CPU_Plugs/GCImplementationImpl.cs
José Pedro 2edda8c4e8 g3
2017-08-04 00:40:19 +01:00

23 lines
613 B
C#

using System;
using Cosmos.CPU;
using Cosmos.IL2CPU.API;
using Cosmos.IL2CPU.API.Attribs;
namespace Cosmos.CPU_Plugs {
[Plug(Target = typeof(GCImplementation))]
public static class GCImplementationImpl {
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
}
}
}