Bug 45993 - Make it possible to disable native process code at configure time
Summary: Make it possible to disable native process code at configure time
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-10-27 09:00 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2017-01-11 10:23 UTC (History)
4 users (show)

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

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 for Bug 45993 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Rolf Bjarne Kvinge [MSFT] 2016-10-27 09:00:13 UTC
The process handling code (processes.c) is fairly big:

> > ls -laSh xamarin-macios/builds/*/*/*/processes.o
> -rw-r--r--  1 rolf  wheel   275K Oct 27 08:43 xamarin-macios/builds/targettv/mono/io-layer/processes.o
> -rw-r--r--  1 rolf  wheel   262K Oct 27 08:43 xamarin-macios/builds/targetwatch/mono/io-layer/processes.o
> -rw-r--r--  1 rolf  wheel   156K Oct 27 08:38 xamarin-macios/builds/target64/mono/io-layer/processes.o
> -rw-r--r--  1 rolf  wheel   142K Oct 27 08:37 xamarin-macios/builds/target7s/mono/io-layer/processes.o
> -rw-r--r--  1 rolf  wheel   142K Oct 27 08:24 xamarin-macios/builds/target7/mono/io-layer/processes.o

Much of this is not needed for iOS/tvOS/watchOS, so it should be possible to not build/include it at all by disabling it with configure flags.
Comment 1 Zoltan Varga 2016-10-28 17:24:26 UTC
Most of that is only accessed from icalls so it will be linked out.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2017-01-11 10:23:09 UTC
It will only be linked out when linking with the static libmonosgen-2.0.a library, not when using the dynamic libmonosgen-2.0.dylib (which we currently ship as Mono.framework/Mono).