[sgen] Don't increase degraded_mode in alloc_degraded().
authorMark Probst <mark.probst@gmail.com>
Wed, 8 Dec 2010 08:39:41 +0000 (09:39 +0100)
committerMark Probst <mark.probst@gmail.com>
Wed, 8 Dec 2010 08:39:41 +0000 (09:39 +0100)
Mature allocation uses the degraded allocation machinery to allocate
objects in the major space.  Modifying degraded_mode in those cases
will actually put us into degraded mode which slows us down immensely.

mono/metadata/sgen-gc.c

index b48baae2f0431bfae5af4c1e92e9aa97ec2cafc4..89235c670e5e253987051392e6dfed4e3a877e83 100644 (file)
@@ -3564,7 +3564,6 @@ alloc_degraded (MonoVTable *vtable, size_t size)
                mono_profiler_gc_event (MONO_GC_EVENT_END, 1);
        }
 
-       degraded_mode += size;
        return major_collector.alloc_degraded (vtable, size);
 }