Skip to content

Commit

Permalink
Backed out changeset 2d6c5cbcc213 (bug 902587) for failures during li…
Browse files Browse the repository at this point in the history
…nking on a CLOSED TREE

--HG--
rename : xpcom/build/PoisonIOInterposer.h => xpcom/build/mozPoisonWrite.h
rename : xpcom/build/PoisonIOInterposerBase.cpp => xpcom/build/mozPoisonWriteBase.cpp
rename : xpcom/build/PoisonIOInterposerMac.cpp => xpcom/build/mozPoisonWriteMac.cpp
rename : xpcom/build/PoisonIOInterposerWin.cpp => xpcom/build/mozPoisonWriteWin.cpp
  • Loading branch information
Ed Morley committed Oct 25, 2013
1 parent 4de5a04 commit 019abea
Show file tree
Hide file tree
Showing 25 changed files with 796 additions and 1,154 deletions.
6 changes: 3 additions & 3 deletions browser/app/nsBrowserApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ XRE_SetupDllBlocklistType XRE_SetupDllBlocklist;
XRE_TelemetryAccumulateType XRE_TelemetryAccumulate;
XRE_StartupTimelineRecordType XRE_StartupTimelineRecord;
XRE_mainType XRE_main;
XRE_StopLateWriteChecksType XRE_StopLateWriteChecks;
XRE_DisableWritePoisoningType XRE_DisableWritePoisoning;

static const nsDynamicFunctionLoad kXULFuncs[] = {
{ "XRE_GetFileFromPath", (NSFuncPtr*) &XRE_GetFileFromPath },
Expand All @@ -162,7 +162,7 @@ static const nsDynamicFunctionLoad kXULFuncs[] = {
{ "XRE_TelemetryAccumulate", (NSFuncPtr*) &XRE_TelemetryAccumulate },
{ "XRE_StartupTimelineRecord", (NSFuncPtr*) &XRE_StartupTimelineRecord },
{ "XRE_main", (NSFuncPtr*) &XRE_main },
{ "XRE_StopLateWriteChecks", (NSFuncPtr*) &XRE_StopLateWriteChecks },
{ "XRE_DisableWritePoisoning", (NSFuncPtr*) &XRE_DisableWritePoisoning },
{ nullptr, nullptr }
};

Expand Down Expand Up @@ -642,7 +642,7 @@ int main(int argc, char* argv[])
// at least one such write that we don't control (see bug 826029). For
// now we enable writes again and early exits will have to use exit instead
// of _exit.
XRE_StopLateWriteChecks();
XRE_DisableWritePoisoning();
#endif

return result;
Expand Down
1 change: 1 addition & 0 deletions media/mtransport/test/mtransport_test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "nsPISocketTransportService.h"
#include "nsServiceManagerUtils.h"
#include "TestHarness.h"
#include "mozilla/mozPoisonWrite.h"

class MtransportTestUtils {
public:
Expand Down
2 changes: 1 addition & 1 deletion storage/src/mozStorageService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "nsIPropertyBag2.h"
#include "mozilla/Services.h"
#include "mozilla/Preferences.h"
#include "mozilla/LateWriteChecks.h"
#include "mozilla/mozPoisonWrite.h"
#include "mozIStorageCompletionCallback.h"

#include "sqlite3.h"
Expand Down
1 change: 1 addition & 0 deletions toolkit/components/startup/nsAppStartup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "jsapi.h"
#include "prenv.h"
#include "nsAppDirectoryServiceDefs.h"
#include "mozilla/mozPoisonWrite.h"

#if defined(XP_WIN)
// Prevent collisions with nsAppStartup::GetStartupInfo()
Expand Down
2 changes: 1 addition & 1 deletion toolkit/components/telemetry/Telemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#include "mozilla/Mutex.h"
#include "mozilla/FileUtils.h"
#include "mozilla/Preferences.h"
#include "mozilla/PoisonIOInterposer.h"
#include "mozilla/mozPoisonWrite.h"
#if defined(MOZ_ENABLE_PROFILER_SPS)
#include "shared-libraries.h"
#endif
Expand Down
6 changes: 3 additions & 3 deletions toolkit/crashreporter/nsExceptionHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ using mozilla::InjectCrashRunnable;
#include <vector>

#include "mozilla/mozalloc_oom.h"
#include "mozilla/LateWriteChecks.h"
#include "mozilla/mozPoisonWrite.h"

#if defined(XP_MACOSX)
CFStringRef reporterClientAppID = CFSTR("org.mozilla.crashreporter");
Expand Down Expand Up @@ -792,7 +792,7 @@ static bool ShouldReport()

namespace {
bool Filter(void* context) {
mozilla::StopLateWriteChecks();
mozilla::DisableWritePoisoning();
return true;
}
}
Expand Down Expand Up @@ -2234,7 +2234,7 @@ OOPInitialized()

#ifdef XP_MACOSX
static bool ChildFilter(void *context) {
mozilla::StopLateWriteChecks();
mozilla::DisableWritePoisoning();
return true;
}
#endif
Expand Down
14 changes: 7 additions & 7 deletions toolkit/xre/nsAppRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
#include "nsINIParser.h"
#include "mozilla/Omnijar.h"
#include "mozilla/StartupTimeline.h"
#include "mozilla/LateWriteChecks.h"
#include "mozilla/mozPoisonWrite.h"

#include <stdlib.h>

Expand Down Expand Up @@ -3961,10 +3961,10 @@ XREMain::XRE_main(int argc, char* argv[], const nsXREAppData* aAppData)
// corresponds to nsIAppStartup.quit(eRestart)
if (rv == NS_SUCCESS_RESTART_APP) {
appInitiatedRestart = true;

// We have an application restart don't do any shutdown checks here
// In particular we don't want to poison IO for checking late-writes.
gShutdownChecks = SCM_NOTHING;
} else {
// We will have a real shutdown, let ShutdownXPCOM poison writes to
// find any late ones.
mozilla::EnableWritePoisoning();
}

if (!mShuttingDown) {
Expand Down Expand Up @@ -4144,8 +4144,8 @@ void SetWindowsEnvironment(WindowsEnvironmentType aEnvID);
#endif // MOZ_METRO || !defined(XP_WIN)

void
XRE_StopLateWriteChecks(void) {
mozilla::StopLateWriteChecks();
XRE_DisableWritePoisoning(void) {
mozilla::DisableWritePoisoning();
}

int
Expand Down
2 changes: 1 addition & 1 deletion tools/trace-malloc/lib/nsTraceMalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "nsStackWalk.h"
#include "nsTraceMallocCallbacks.h"
#include "nsTypeInfo.h"
#include "mozilla/PoisonIOInterposer.h"
#include "mozilla/mozPoisonWrite.h"

#if defined(XP_MACOSX)

Expand Down
2 changes: 1 addition & 1 deletion xpcom/base/nsCycleCollector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
#include <stdio.h>

#include "mozilla/Likely.h"
#include "mozilla/PoisonIOInterposer.h"
#include "mozilla/mozPoisonWrite.h"
#include "mozilla/Telemetry.h"
#include "mozilla/ThreadLocal.h"

Expand Down
2 changes: 1 addition & 1 deletion xpcom/base/nsTraceRefcntImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#endif

#include "mozilla/BlockingResourceBase.h"
#include "mozilla/PoisonIOInterposer.h"
#include "mozilla/mozPoisonWrite.h"

#ifdef HAVE_DLOPEN
#include <dlfcn.h>
Expand Down
248 changes: 0 additions & 248 deletions xpcom/build/LateWriteChecks.cpp

This file was deleted.

Loading

0 comments on commit 019abea

Please sign in to comment.