Add a comment to code that needs cleanup.
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 27 Mar 2012 00:03:25 +0000 (21:03 -0300)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 28 Mar 2012 19:32:20 +0000 (16:32 -0300)
mono/metadata/sgen-gc.c

index 49e271bb20147192388a3e6f3bd4f9ec936dd737..829faf2bd6b0e5ad29d9d91706aa7b1d4247d80c 100644 (file)
@@ -3267,6 +3267,7 @@ mono_sgen_object_is_live (void *obj)
 {
        if (ptr_in_nursery (obj))
                return object_is_pinned (obj);
+       /* FIXME This is semantically wrong! All tenured object are considered alive during a nursery collection. */
        if (current_collection_generation == GENERATION_NURSERY)
                return FALSE;
        return major_collector.is_object_live (obj);