[exception] remove dynamic loading of libunwind/libcorkscrew on Android
authorBernhard Urban <bernhard.urban@xamarin.com>
Mon, 19 Dec 2016 16:48:54 +0000 (17:48 +0100)
committerBernhard Urban <bernhard.urban@xamarin.com>
Mon, 19 Dec 2016 23:19:20 +0000 (00:19 +0100)
commit41272d634b5917f67c12fc4f7172d66242abe7d9
tree63912085a2497aed74efbe368363204a39301c54
parent4f1280d5885c777347454bfdef4cc7cec3aea8d8
[exception] remove dynamic loading of libunwind/libcorkscrew on Android

we will rely on the output of debuggerd in order to get a native stack
trace.  The arguments to support that:

(a) native stack trace by debuggerd is at least as good as the one we get via
    libunwind (most of the time the trace provided by libunwind is useless?)

(b) we cannot screw up by accident (e.g. we have seen issues with a too small altstack)

(c) we don't need to maintain the libunwind integration into mono (which we
    sort of had to do because of the upcoming dlopen limitation in Android 7.0
    Nougat).

(d) the libmonosgen-2.0.so had about one megabyte more footprint (16mb ->
    17mb). I'm talking about a debug build here though.

See mailing list discussion for more information:
http://lists.dot.net/pipermail/android-devel/2016-December/000026.html
mono/mini/Makefile.am.in
mono/mini/mini-exceptions-native-unwinder.c [deleted file]
mono/mini/mini-exceptions.c
mono/mini/mini.h