Bug 1925181 - Properly set small alloc randomization on Android content processes as well r=jld

Differential Revision: https://phabricator.services.mozilla.com/D226135
This commit is contained in:
Alexandre Lissy
2024-10-21 06:05:44 +00:00
parent e16cc4f6b1
commit 57c41b8c56
4 changed files with 21 additions and 13 deletions

View File

@@ -805,9 +805,7 @@ void ContentChild::Init(mozilla::ipc::UntypedEndpoint&& aEndpoint,
}));
#endif
// Bug 1925181: Unrelated to forkserver, the android content processes are
// created in a way that makes them not follow this option correctly
#if defined(MOZ_MEMORY) && defined(DEBUG) && !defined(ANDROID)
#if defined(MOZ_MEMORY) && defined(DEBUG)
jemalloc_stats_t stats;
jemalloc_stats(&stats);
MOZ_ASSERT(!stats.opt_randomize_small,