[sgen] Don't try to stop a stopped world
authorVlad Brezae <brezaevlad@gmail.com>
Wed, 8 Jun 2016 22:20:53 +0000 (01:20 +0300)
committerVlad Brezae <brezaevlad@gmail.com>
Wed, 8 Jun 2016 22:49:16 +0000 (01:49 +0300)
commitb136605a738057ba706aeb5fef682149cd216a9d
treed859a5a8f816f5e6dafedeea0e3cf80776fdc6b1
parentb940b99c81f87afb45a5a50edaf3028fedb1d963
[sgen] Don't try to stop a stopped world

On domain unload we were calling sgen_perform_collection even though we had a stopped world, when finishing a running concurrent collection.
mono/metadata/sgen-mono.c
mono/sgen/sgen-alloc.c
mono/sgen/sgen-gc.c
mono/sgen/sgen-gc.h
mono/sgen/sgen-marksweep.c