2010-03-26 Zoltan Varga <vargaz@gmail.com>
authorZoltan Varga <vargaz@gmail.com>
Fri, 26 Mar 2010 19:44:32 +0000 (19:44 -0000)
committerZoltan Varga <vargaz@gmail.com>
Fri, 26 Mar 2010 19:44:32 +0000 (19:44 -0000)
* debugger-agent.c (mono_debugger_agent_init): Set the GC type of the
thread_to_tls hash table.

svn path=/trunk/mono/; revision=154313

mono/mini/ChangeLog
mono/mini/debugger-agent.c

index 5b004d8c86d63e13e16a302402edcc7a1b96b2ca..62ab69d54c7a6966ba4fe42ca04a23524a04be32 100755 (executable)
@@ -1,5 +1,8 @@
 2010-03-26  Zoltan Varga  <vargaz@gmail.com>
 
+       * debugger-agent.c (mono_debugger_agent_init): Set the GC type of the
+       thread_to_tls hash table.
+
        * image-writer.c (bin_writer_emit_writeout): Fix the size of the got.plt
        section. Fixes #591000.
 
index 58e426a969ba649a86b866f5651c0539aa387be2..22c96cad9b952e07b277c253c0ddaa8c4cf578a9 100644 (file)
@@ -764,7 +764,7 @@ mono_debugger_agent_init (void)
 
        debugger_tls_id = TlsAlloc ();
 
-       thread_to_tls = mono_g_hash_table_new (NULL, NULL);
+       thread_to_tls = mono_g_hash_table_new_type (NULL, NULL, MONO_HASH_KEY_GC);
        MONO_GC_REGISTER_ROOT (thread_to_tls);
 
        tid_to_thread = mono_g_hash_table_new_type (NULL, NULL, MONO_HASH_VALUE_GC);