Permalink
Browse files

[sgen] Don't call sgen_scan_togglerefs() twice.

In the case where they are called twice, the first call must already have
processed the whole heap.
  • Loading branch information...
1 parent 792f319 commit 0d3d43f1dd11e605d08a6888b715a535ffd9cc45 @schani schani committed Mar 13, 2013
Showing with 0 additions and 2 deletions.
  1. +0 −2 mono/metadata/sgen-gc.c
View
2 mono/metadata/sgen-gc.c
@@ -1921,8 +1921,6 @@ finish_gray_stack (int generation, GrayQueue *queue)
} while (!done_with_ephemerons);
sgen_scan_togglerefs (start_addr, end_addr, ctx);
- if (generation == GENERATION_OLD)
- sgen_scan_togglerefs (sgen_get_nursery_start (), sgen_get_nursery_end (), ctx);
if (sgen_need_bridge_processing ()) {
sgen_collect_bridge_objects (generation, ctx);

0 comments on commit 0d3d43f

Please sign in to comment.