From c1d6e85d4a88e7a70b887658e0ec64373a54db08 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Sun, 30 Nov 2014 15:02:46 +0100 Subject: [PATCH] [runtime] Call mono_gc_base_init () in sdb, since it is no longer called by the code in mono-debug.c. --- mono/mini/debugger-agent.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mono/mini/debugger-agent.c b/mono/mini/debugger-agent.c index 4b66e434390..e2467da18f0 100644 --- a/mono/mini/debugger-agent.c +++ b/mono/mini/debugger-agent.c @@ -995,6 +995,9 @@ mono_debugger_agent_init (void) mono_native_tls_alloc (&debugger_tls_id, NULL); + /* Needed by the hash_table_new_type () call below */ + mono_gc_base_init (); + thread_to_tls = mono_g_hash_table_new_type (NULL, NULL, MONO_HASH_KEY_GC); MONO_GC_REGISTER_ROOT_FIXED (thread_to_tls); -- 2.25.1