From abca0d0f6e2ce5e7ae294043ad0ae504ab3162bb Mon Sep 17 00:00:00 2001 From: "benjamin%smedbergs.us" Date: Tue, 11 Apr 2006 13:28:21 +0000 Subject: [PATCH] Bug 326925 - components should be loaded with RLTD_NOW, r=darin - This is an experimental checkin that has the potential to affect Ts times on linux machines, especially nonstatic builds. git-svn-id: svn://10.0.0.236/trunk@194120 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/io/nsLocalFileOSX.cpp | 7 ++++++- mozilla/xpcom/io/nsLocalFileUnix.cpp | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/mozilla/xpcom/io/nsLocalFileOSX.cpp b/mozilla/xpcom/io/nsLocalFileOSX.cpp index 2b75d21050d..c90710fafd1 100644 --- a/mozilla/xpcom/io/nsLocalFileOSX.cpp +++ b/mozilla/xpcom/io/nsLocalFileOSX.cpp @@ -1253,7 +1253,12 @@ NS_IMETHODIMP nsLocalFile::Load(PRLibrary **_retval) if (NS_FAILED(rv)) return rv; - *_retval = PR_LoadLibrary(path.get()); + PRLibSpec ls = { + PR_LibSpec_Pathname, + path.get() + }; + + *_retval = PR_LoadLibraryWithFlags(ls, PR_LD_NOW); 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 3191a4e6427..e8a66fb6874 100644 --- a/mozilla/xpcom/io/nsLocalFileUnix.cpp +++ b/mozilla/xpcom/io/nsLocalFileUnix.cpp @@ -1586,7 +1586,12 @@ nsLocalFile::Load(PRLibrary **_retval) NS_TIMELINE_START_TIMER("PR_LoadLibrary"); - *_retval = PR_LoadLibrary(mPath.get()); + PRLibSpec ls = { + PR_LibSpec_Pathname, + mPath.get() + }; + + *_retval = PR_LoadLibraryWithFlags(ls, PR_LD_NOW); NS_TIMELINE_STOP_TIMER("PR_LoadLibrary"); NS_TIMELINE_MARK_TIMER1("PR_LoadLibrary", mPath.get());