Remove tracking link hashtables no longer used by boehm.
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 16 Jan 2013 20:40:54 +0000 (15:40 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 16 Jan 2013 21:10:47 +0000 (16:10 -0500)
mono/metadata/domain-internals.h
mono/metadata/domain.c

index 02c3d5270359348fba84d00fbcbd87a12079e1d7..92af3d0553c57eb7992a15f4cb2dcd4ce5474ac7 100644 (file)
@@ -327,12 +327,6 @@ struct _MonoDomain {
         */
        GHashTable         *finalizable_objects_hash;
 
-       /* These two are boehm only */
-       /* Maps MonoObjects to a GSList of WeakTrackResurrection GCHandles pointing to them */
-       GHashTable         *track_resurrection_objects_hash;
-       /* Maps WeakTrackResurrection GCHandles to the MonoObjects they point to */
-       GHashTable         *track_resurrection_handles_hash;
-
        /* Protects the three hashes above */
        CRITICAL_SECTION   finalizable_objects_hash_lock;
        /* Used when accessing 'domain_assemblies' */
index 59910b6b88f436301e4b5dec6f0599437a9048fc..43969a03c6f0e7400a097d3ed5694b968fbf69f4 100644 (file)
@@ -1213,7 +1213,6 @@ mono_domain_create (void)
        domain->jit_info_table = jit_info_table_new (domain);
        domain->jit_info_free_queue = NULL;
        domain->finalizable_objects_hash = g_hash_table_new (mono_aligned_addr_hash, NULL);
-       domain->track_resurrection_handles_hash = g_hash_table_new (mono_aligned_addr_hash, NULL);
        domain->ftnptrs_hash = g_hash_table_new (mono_aligned_addr_hash, NULL);
 
        InitializeCriticalSection (&domain->lock);
@@ -2067,12 +2066,6 @@ mono_domain_free (MonoDomain *domain, gboolean force)
 
        g_hash_table_destroy (domain->finalizable_objects_hash);
        domain->finalizable_objects_hash = NULL;
-       if (domain->track_resurrection_objects_hash) {
-               g_hash_table_foreach (domain->track_resurrection_objects_hash, free_slist, NULL);
-               g_hash_table_destroy (domain->track_resurrection_objects_hash);
-       }
-       if (domain->track_resurrection_handles_hash)
-               g_hash_table_destroy (domain->track_resurrection_handles_hash);
        if (domain->method_rgctx_hash) {
                g_hash_table_destroy (domain->method_rgctx_hash);
                domain->method_rgctx_hash = NULL;