From 88fde33686b81df0438501dfa2a927c7d3b61aad Mon Sep 17 00:00:00 2001 From: "benjamin%smedbergs.us" Date: Thu, 13 Apr 2006 17:24:12 +0000 Subject: [PATCH] Reverting bug 326925 because of a 6.5% Ts increase, even in static builds. git-svn-id: svn://10.0.0.236/trunk@194327 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/io/nsLocalFileOSX.cpp | 7 +------ mozilla/xpcom/io/nsLocalFileUnix.cpp | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/mozilla/xpcom/io/nsLocalFileOSX.cpp b/mozilla/xpcom/io/nsLocalFileOSX.cpp index c90710fafd1..2b75d21050d 100644 --- a/mozilla/xpcom/io/nsLocalFileOSX.cpp +++ b/mozilla/xpcom/io/nsLocalFileOSX.cpp @@ -1253,12 +1253,7 @@ NS_IMETHODIMP nsLocalFile::Load(PRLibrary **_retval) if (NS_FAILED(rv)) return rv; - PRLibSpec ls = { - PR_LibSpec_Pathname, - path.get() - }; - - *_retval = PR_LoadLibraryWithFlags(ls, PR_LD_NOW); + *_retval = PR_LoadLibrary(path.get()); NS_TIMELINE_STOP_TIMER("PR_LoadLibrary"); NS_TIMELINE_MARK_TIMER1("PR_LoadLibrary", path.get()); diff --git a/mozilla/xpcom/io/nsLocalFileUnix.cpp b/mozilla/xpcom/io/nsLocalFileUnix.cpp index e8a66fb6874..3191a4e6427 100644 --- a/mozilla/xpcom/io/nsLocalFileUnix.cpp +++ b/mozilla/xpcom/io/nsLocalFileUnix.cpp @@ -1586,12 +1586,7 @@ nsLocalFile::Load(PRLibrary **_retval) NS_TIMELINE_START_TIMER("PR_LoadLibrary"); - PRLibSpec ls = { - PR_LibSpec_Pathname, - mPath.get() - }; - - *_retval = PR_LoadLibraryWithFlags(ls, PR_LD_NOW); + *_retval = PR_LoadLibrary(mPath.get()); NS_TIMELINE_STOP_TIMER("PR_LoadLibrary"); NS_TIMELINE_MARK_TIMER1("PR_LoadLibrary", mPath.get());