[Mac] Do not unload base::NativeLibrary-ies if they contain ObjC segments.

Once an ObjC image is loaded into a process, the runtime will place unloadable
data into its caches. If the bundle is unloaded, then ObjC calls could result
in dereferencing memory in an unloaded module.

CFBundle and NSBundle explicitly say to not unload executable bundles
containing ObjC, but we were doing so anyways (oops!).

BUG=172319
TEST=Verify that fixupSelectorsInMethodList crash does not happen anymore.


Review URL: https://chromiumcodereview.appspot.com/12793004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188356 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 5625f3cf69a662ccaee4937b3bcc7a3caa0d74db
1 file changed
tree: 23da4c65dc3471cd1052a6f24ff69160700e4e82
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/