Skip to content

Conversation

@jonpryor
Copy link
Contributor

Mono has support for improved SGEN GC Bridge behavior which bumps
the value of SGEN_BRIDGE_VERSION from 4 to 5, and will be
present within Mono 4.8.

Xamarin.Android, meanwhile, is currently targeting Mono 4.6, which
won't be getting support for this new SGEN bridge version.

What is desired is a way to use xamarin-android with Mono 4.7/4.8 to
test out the new GC bridge behavior, without breaking existing
Mono 4.6 support.

The solution is a new MSBuild property, $(MonoSgenBridgeVersion),
which allows overriding the SGEN_BRIDGE_VERSION value used when
building the libmono-android native library.

By default this MSBuild prpoperty is 4, for compatibility with
Mono 4.6.

@xmcclure
Copy link
Contributor

LGTM. Thanks.
Do we need to do anything particular to get version 5 specified on mono-master-master?

@jonpryor
Copy link
Contributor Author

I believe mono-master-master uses the monodroid repo, which will require additional changes.

[Mono has support for improved SGEN GC Bridge behavior][0] which bumps
the value of `SGEN_BRIDGE_VERSION` from `4` to `5`, and will be
present within Mono 4.8.

Xamarin.Android, meanwhile, is currently targeting Mono 4.6, which
won't be getting support for this new SGEN bridge version.

What is desired is a way to use xamarin-android with Mono 4.7/4.8 to
test out the new GC bridge behavior, without breaking existing
Mono 4.6 support.

The solution is a new MSBuild property, `$(MonoSgenBridgeVersion)`,
which allows overriding the `SGEN_BRIDGE_VERSION` value used when
building the `libmono-android` native library.

By default this MSBuild prpoperty is `4`, for compatibility with
Mono 4.6.

[0]: https://github.com/mono/mono/pull/3422/files
@jonpryor jonpryor force-pushed the jonp-sgen-bridge-version branch from 2d25f0e to ee5c88f Compare September 13, 2016 14:05
@grendello grendello merged commit 67fe854 into dotnet:master Sep 13, 2016
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants