Bug 53090 - Enabling the concurrent GC doesn't work in debug mode
Summary: Enabling the concurrent GC doesn't work in debug mode
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 7.2 (15.1)
Hardware: PC Mac OS
: --- normal
Target Milestone: 15.1
Assignee: Jonathan Pryor
Depends on:
Reported: 2017-03-06 21:03 UTC by Rodrigo Kumpera
Modified: 2017-03-21 12:23 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Logs (21.91 KB, application/zip)
2017-03-21 12:23 UTC, Alok Kulkarni

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Rodrigo Kumpera 2017-03-06 21:03:04 UTC
Enabling it in debug builds doesn't work. I always get the serial GC.

It works fine in Release builds.
Comment 1 Jonathan Pryor 2017-03-13 15:21:46 UTC
I believe that this was fixed by: https://github.com/xamarin/monodroid/pull/581
Comment 2 Neeraj Deshmukh 2017-03-17 12:31:07 UTC
Hi Rodrigo , 

It would be great if you can provide me steps or screencast link to validate this bug. I am also unable to access the link :  https://github.com/xamarin/monodroid/pull/581  as well.
Comment 3 Rodrigo Kumpera 2017-03-17 20:55:39 UTC
Hey Vlad,

Can you help Neeraj here?
Comment 4 Vlad Brezae 2017-03-17 21:30:06 UTC
Hi Neeraj,

    Long story short, enabling "use the concurrent garbage collector" property in android project options -> Android build should translate to the app having MONO_GC_PARAMS=major=marksweep-conc set at runtime. You can check this at runtime by adding to a sample android project : System.Environment.GetEnvironmentVariable("MONO_GC_PARAMS").Contains("major=marksweep-conc"); (it is true if it's passed and false or NullReferenceException if not passed).

    As it was mentioned above this was reproducible only with debug builds. I think the latest Xamarin.Android build  (from alpha) should have the fix and any build older than one week should be buggy.
Comment 5 Alok Kulkarni 2017-03-21 12:23:45 UTC
Created attachment 20509 [details]

Verified in XS Version 6.3 (build 848)
Xamarin.iOS Version
Xamarin.Android Version
Xamarin.mac Version