summaryrefslogtreecommitdiffstats
path: root/modules/mono/csharp_script.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-01-23 23:06:58 +0100
committerGitHub <noreply@github.com>2020-01-23 23:06:58 +0100
commit55f580b24a696089dc1bda7dbfb14b3e63de23f0 (patch)
tree42a406efe17d0848b6737b5c9c62bc2f8d9c27ea /modules/mono/csharp_script.h
parent2e27e746499888b1a9d2dd37ddd5e29f36b2831d (diff)
parent55b2e58a98697f9d65fa1dd41cd4ae8184213f43 (diff)
downloadredot-engine-55f580b24a696089dc1bda7dbfb14b3e63de23f0.tar.gz
Merge pull request #35491 from neikeq/issue-35450
Mono/C#: Lighten up unsafe reference checks
Diffstat (limited to 'modules/mono/csharp_script.h')
-rw-r--r--modules/mono/csharp_script.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/mono/csharp_script.h b/modules/mono/csharp_script.h
index 30f56e00bd..f244bc4119 100644
--- a/modules/mono/csharp_script.h
+++ b/modules/mono/csharp_script.h
@@ -308,8 +308,9 @@ class CSharpLanguage : public ScriptLanguage {
Map<Object *, CSharpScriptBinding> script_bindings;
#ifdef DEBUG_ENABLED
- // List of unsafely referenced objects
- List<ObjectID> unsafely_referenced_objects;
+ // List of unsafe object references
+ Map<ObjectID, int> unsafe_object_references;
+ Mutex *unsafe_object_references_lock;
#endif
struct StringNameCache {