Skip to content

Commit 14c1736

Browse files
authored
Merge pull request #1115 from Unity-Technologies/unity-master-sync-il2cpp
Sync IL2CPP changes up to aebcd0f844270d5f407ec3d22f20a066d7028d36
2 parents 9696779 + 46ed83e commit 14c1736

File tree

7 files changed

+135
-607
lines changed

7 files changed

+135
-607
lines changed

mono/metadata/il2cpp-compat-metadata.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ SgenDescriptor il2cpp_mono_gc_make_root_descr_all_refs(int numbits);
2525
MonoGCDescriptor il2cpp_mono_gc_make_vector_descr (void);
2626
void* il2cpp_mono_gc_alloc_fixed (size_t size, void* descr, MonoGCRootSource source, void *key, const char *msg);
2727
gboolean il2cpp_mono_gc_is_moving();
28+
void il2cpp_mono_gc_deregister_root(char* addr);
2829

2930
typedef void* (*MonoGCLockedCallbackFunc) (void *data);
3031
void* il2cpp_mono_gc_invoke_with_gc_lock (MonoGCLockedCallbackFunc func, void *data);

mono/metadata/metadata-internals.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ struct _MonoImage {
195195
/* If the raw data was allocated from a source such as mmap, the allocator may store resource tracking information here. */
196196
void *raw_data_handle;
197197
char *raw_data;
198+
#ifdef IL2CPP_ON_MONO
199+
void* il2cpp_codegen_handle;
200+
#endif
198201
guint32 raw_data_len;
199202
guint8 raw_buffer_used : 1;
200203
guint8 raw_data_allocated : 1;

mono/metadata/mono-hash.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
#include <mono/utils/mono-threads-coop.h>
3838
#include <mono/utils/unlocked.h>
3939

40+
void il2cpp_mono_gc_wbarrier_generic_store (void* ptr, MonoObject* value);
41+
4042
gint32 mono_g_hash_table_max_chain_length;
4143

4244
struct _MonoGHashTable {

0 commit comments

Comments
 (0)