зеркало из https://github.com/mozilla/pjs.git
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.
This commit is contained in:
Родитель
341f0f246a
Коммит
b45aa78749
|
@ -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());
|
||||
|
|
Загрузка…
Ссылка в новой задаче