[Vm-dev] search order for plugins

John M McIntosh johnmci at smalltalkconsulting.com
Thu Apr 26 20:28:46 UTC 2007


I'll note the Mac carbon VM has a info.plist flag that is turned on  
to ensure the tryLoading logic tries less hard and considers the  
internall bundle's application folder first so
the the number of opens is *considerably* less.

On Apr 26, 2007, at 11:48 AM, subbukk wrote:

>
> Hi,
>
> In platforms/unix/vm/sqUnixExternalPrims.c:
> 231   if ((   handle= tryLoading(    "./",                   
> pluginName))
> 232       || (handle= tryLoadingPath("SQUEAK_PLUGIN_PATH",   
> pluginName))
> 233       || (handle= tryLoading(    VM_LIBDIR"/",           
> pluginName))
> 234       || (handle= tryLoadingPath("LD_LIBRARY_PATH",      
> pluginName))
> 235       || (handle= tryLoading(    "",                     
> pluginName))
>
> The most likely place to find plugins would be the directory where the
> squeakvm executable is located. So, shouldn't the search start from  
> that
> directory? The current directory is not a reliable location and  
> should be
> tried only as a last resort.
>
> An strace of squeak (3.7.7) startup reveals 181 attempts to open of  
> which
> 179 fails with ENOENT.
>
> Regards .. Subbu

--
======================================================================== 
===
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
======================================================================== 
===




More information about the Vm-dev mailing list