From edafb91e6b9145e36531d27f352d71ca97fabb28 Mon Sep 17 00:00:00 2001 From: Aaron Klotz Date: Tue, 24 Sep 2019 14:53:23 +0000 Subject: [PATCH] Bug 1583417: Remove assertion that may fire spuriously due to racy condition; r=mhowell This assertion could fire if the profiler state changes between beginning and ending a DLL load. That's less than ideal, so let's just get rid of it. Differential Revision: https://phabricator.services.mozilla.com/D46897 --HG-- extra : moz-landing-system : lando --- mozglue/dllservices/LoaderObserver.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/mozglue/dllservices/LoaderObserver.cpp b/mozglue/dllservices/LoaderObserver.cpp index 27878cfef363..82aae36af0cd 100644 --- a/mozglue/dllservices/LoaderObserver.cpp +++ b/mozglue/dllservices/LoaderObserver.cpp @@ -61,7 +61,6 @@ void LoaderObserver::OnEndDllLoad(void* aContext, NTSTATUS aNtStatus, DesuppressStackWalking(); #endif - MOZ_ASSERT_IF(IsProfilerPresent(), aContext); UniquePtr loadContext(static_cast(aContext)); if (loadContext && IsValidProfilerLabel(loadContext->mProfilerLabel)) { ProfilerLabelEnd(loadContext->mProfilerLabel);