mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
23 lines
566 B
C#
23 lines
566 B
C#
using Cosmos.CPU.x86;
|
|
using Cosmos.CPU.x86.Memory.Old;
|
|
|
|
using IL2CPU.API.Attribs;
|
|
|
|
namespace Cosmos.CPU_Plugs {
|
|
[Plug(typeof(GCImplementation))]
|
|
public static class GCImplementationImpl {
|
|
public static uint AllocNewObject(uint aSize) {
|
|
GlobalSystemInfo.EnsureInitialized();
|
|
return Heap.MemAlloc(aSize);
|
|
}
|
|
|
|
public static void IncRefCount(uint aObject) {
|
|
// Do nothing right now
|
|
}
|
|
|
|
public static void DecRefCount(uint aObject) {
|
|
// Do nothing right now
|
|
}
|
|
|
|
}
|
|
}
|