[Mono-dev] patches for RegionInfo support

Paolo Molaro lupus at ximian.com
Sat Aug 20 09:54:34 EDT 2005


On 08/17/05 Atsushi Eno wrote:
> I mostly copied those icall code from CurrentCulture support,
> but one thing I don't understand is NUM_CACHED_CULTURES ... why
> it is set as 4? Is it safe to guess NUM_CACHED_REGIONS 4 as well?

I would store a single copy, ie not an array of objects, since nobody
uses this stuff.

> +		static object region_lock = new object ();
> +
> +		internal RegionInfo CurrentRegion {

Make this static so it can be called only on the current thread and
remove the locking.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list