Merge pull request #2034 from alexrp/ctx-cleanup
[mono.git] / mono / metadata / domain-internals.h
index 2159f50f0e6dfcd04852820981aef3e040099614..4cb4af6c02d1aca82dfca8f81fd08e5c0a867688 100644 (file)
@@ -238,11 +238,17 @@ struct _MonoJitInfo {
 
 #define MONO_SIZEOF_JIT_INFO (offsetof (struct _MonoJitInfo, clauses))
 
+typedef struct {
+       gpointer *static_data; /* Used to free the static data without going through the MonoAppContext object itself. */
+       uint32_t gc_handle;
+} ContextStaticData;
+
 struct _MonoAppContext {
        MonoObject obj;
        gint32 domain_id;
        gint32 context_id;
        gpointer *static_data;
+       ContextStaticData *data;
 };
 
 /* Lock-free allocator */