mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 06:38:36 +00:00
#70543 - Mac OS running out of FCBs when loading libraries. Now yield time to OS to allow it to grow the FCB table (shouldn't be necessary, apparently is). sr=sfraser,r=macdev
This commit is contained in:
parent
e101defa3c
commit
91599490da
@ -751,17 +751,6 @@ nsNativeComponentLoader::AutoRegisterComponent(PRInt32 when,
|
||||
// so that 3rd party shared libraries will be noticed!
|
||||
validExtension = ((type == 'shlb') || (type == 'NSPL'));
|
||||
}
|
||||
|
||||
#if !TARGET_CARBON
|
||||
if (validExtension)
|
||||
{
|
||||
// This call to SystemTask is here to give the OS time to grow it's
|
||||
// FCB (file control block) list, which it seems to be unable to
|
||||
// do unless we yield some time to the OS. See bug 64978 for the whole
|
||||
// story.
|
||||
::SystemTask();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -1545,6 +1545,14 @@ nsLocalFile::Load(PRLibrary * *_retval)
|
||||
if (! isFile)
|
||||
return NS_ERROR_FILE_IS_DIRECTORY;
|
||||
|
||||
#if !TARGET_CARBON
|
||||
// This call to SystemTask is here to give the OS time to grow its
|
||||
// FCB (file control block) list, which it seems to be unable to
|
||||
// do unless we yield some time to the OS. See bugs 64978 & 70543
|
||||
// for the whole story.
|
||||
::SystemTask();
|
||||
#endif
|
||||
|
||||
// Use the new PR_LoadLibraryWithFlags which allows us to use a FSSpec
|
||||
PRLibSpec libSpec;
|
||||
libSpec.type = PR_LibSpec_MacIndexedFragment;
|
||||
|
Loading…
x
Reference in New Issue
Block a user