Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Apr 2009 01:30:48 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r191291 - in head: lib/libthr/thread  libexec/rtld-elf/amd64 libexec/rtld-elf/arm libexec/rtld-elf/i386  libexec/rtld-elf/ia64 libexec/rtld-elf/mips libexec/rtld-elf/powerpc  libexec/rtld-...
Message-ID:  <9bbcef730904191630x4e4f2aeci2d6ac769fc1f73f8@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.0904200006290.71062@fledge.watson.org>
References:  <200904192302.n3JN2o6Z023217@svn.freebsd.org> <alpine.BSF.2.00.0904200006290.71062@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/4/20 Robert Watson <rwatson@freebsd.org>:
> On Sun, 19 Apr 2009, Robert Watson wrote:
>
>> =C2=A0Now that the kernel defines CACHE_LINE_SIZE in machine/param.h, us=
e
>> =C2=A0that definition in the custom locking code for the run-time linker
>> =C2=A0rather than local definitions.
>
> This actually changes the line size used by the rtld code for pre-pthread=
s
> locking for several architectures. =C2=A0I think this is an improvement, =
but if
> architecture maintainers could comment on that, that would be helpful.

Will there be infrastructure for creating per-CPU structures or is
using something like:

int mycounter[MAXCPU] __attribute__ ((aligned(CACHE_LINE_SIZE)));

considered enough?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9bbcef730904191630x4e4f2aeci2d6ac769fc1f73f8>