projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8dde49
)
[sgen] Don't increase degraded_mode in alloc_degraded().
author
Mark Probst
<mark.probst@gmail.com>
Wed, 8 Dec 2010 08:39:41 +0000
(09:39 +0100)
committer
Mark 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
patch
|
blob
|
history
diff --git
a/mono/metadata/sgen-gc.c
b/mono/metadata/sgen-gc.c
index b48baae2f0431bfae5af4c1e92e9aa97ec2cafc4..89235c670e5e253987051392e6dfed4e3a877e83 100644
(file)
--- a/
mono/metadata/sgen-gc.c
+++ b/
mono/metadata/sgen-gc.c
@@
-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);
}