mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-26 21:42:11 +00:00
23 lines
611 B
C#
23 lines
611 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 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
|
|
}
|
|
|
|
}
|
|
}
|