Skip to content
Snippets Groups Projects
Commit 0b70a74f authored by benjamin%smedbergs.us's avatar benjamin%smedbergs.us
Browse files

Bug 326925 - components should be loaded with RLTD_NOW, r=darin - This is an...

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.
parent c62d9277
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment