forked from focus-creative-games/il2cpp_plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNullGC.cpp
More file actions
201 lines (163 loc) · 3.16 KB
/
NullGC.cpp
File metadata and controls
201 lines (163 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
#include "il2cpp-config.h"
#if IL2CPP_GC_NULL
struct Il2CppObject;
#include <stdlib.h>
#include "il2cpp-api.h"
#include "GarbageCollector.h"
#include "utils/Memory.h"
void
il2cpp::gc::GarbageCollector::Initialize()
{
}
void il2cpp::gc::GarbageCollector::UninitializeGC()
{
}
void*
il2cpp::gc::GarbageCollector::AllocateFixed(size_t size, void *descr)
{
return IL2CPP_MALLOC_ZERO(size);
}
void*
il2cpp::gc::GarbageCollector::MakeDescriptorForObject(size_t *bitmap, int numbits)
{
return NULL;
}
void* il2cpp::gc::GarbageCollector::MakeEmptyDescriptor()
{
return NULL;
}
void* il2cpp::gc::GarbageCollector::MakeDescriptorForString()
{
return NULL;
}
void* il2cpp::gc::GarbageCollector::MakeDescriptorForArray()
{
return NULL;
}
void il2cpp::gc::GarbageCollector::StopWorld()
{
IL2CPP_NOT_IMPLEMENTED(il2cpp::gc::GarbageCollector::StopWorld);
}
void il2cpp::gc::GarbageCollector::StartWorld()
{
IL2CPP_NOT_IMPLEMENTED(il2cpp::gc::GarbageCollector::StartWorld);
}
void
il2cpp::gc::GarbageCollector::RemoveWeakLink(void **link_addr)
{
*link_addr = NULL;
}
Il2CppObject*
il2cpp::gc::GarbageCollector::GetWeakLink(void **link_addr)
{
return (Il2CppObject*)*link_addr;
}
void
il2cpp::gc::GarbageCollector::AddWeakLink(void **link_addr, Il2CppObject *obj, bool track)
{
*link_addr = obj;
}
void
il2cpp::gc::GarbageCollector::RegisterThread()
{
}
bool
il2cpp::gc::GarbageCollector::UnregisterThread()
{
return true;
}
il2cpp::gc::GarbageCollector::FinalizerCallback il2cpp::gc::GarbageCollector::RegisterFinalizerWithCallback(Il2CppObject* obj, FinalizerCallback callback)
{
return NULL;
}
void
il2cpp::gc::GarbageCollector::FreeFixed(void* addr)
{
IL2CPP_FREE(addr);
}
int32_t
il2cpp::gc::GarbageCollector::InvokeFinalizers()
{
return 0;
}
bool
il2cpp::gc::GarbageCollector::HasPendingFinalizers()
{
return false;
}
void
il2cpp::gc::GarbageCollector::Collect(int maxGeneration)
{
}
int32_t
il2cpp::gc::GarbageCollector::CollectALittle()
{
return 0;
}
void
il2cpp::gc::GarbageCollector::StartIncrementalCollection()
{
}
void
il2cpp::gc::GarbageCollector::Enable()
{
}
void
il2cpp::gc::GarbageCollector::Disable()
{
}
void
il2cpp::gc::GarbageCollector::SetMode(Il2CppGCMode mode)
{
}
bool
il2cpp::gc::GarbageCollector::IsDisabled()
{
return true;
}
int64_t
il2cpp::gc::GarbageCollector::GetUsedHeapSize(void)
{
return 0;
}
int64_t
il2cpp::gc::GarbageCollector::GetAllocatedHeapSize(void)
{
return 0;
}
int32_t
il2cpp::gc::GarbageCollector::GetMaxGeneration()
{
return 0;
}
int32_t
il2cpp::gc::GarbageCollector::GetCollectionCount(int32_t generation)
{
return 0;
}
void il2cpp::gc::GarbageCollector::ForEachHeapSection(void* user_data, HeapSectionCallback callback)
{
}
size_t il2cpp::gc::GarbageCollector::GetSectionCount()
{
return 0;
}
void* il2cpp::gc::GarbageCollector::CallWithAllocLockHeld(GCCallWithAllocLockCallback callback, void* user_data)
{
return callback(user_data);
}
int64_t
il2cpp::gc::GarbageCollector::GetMaxTimeSliceNs()
{
return 0;
}
void
il2cpp::gc::GarbageCollector::SetMaxTimeSliceNs(int64_t maxTimeSlice)
{
}
bool
il2cpp::gc::GarbageCollector::IsIncremental()
{
return false;
}
#endif