Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <vio9cf$ei97$6@dont-email.me>
Deutsch   English   Français   Italiano  
<vio9cf$ei97$6@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Newsgroups: comp.arch
Subject: Re: Keeping other stuff with addresses
Date: Tue, 3 Dec 2024 16:56:47 -0800
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <vio9cf$ei97$6@dont-email.me>
References: <memo.20241128153105.12904U@jgd.cix.co.uk>
 <20241128185548.000031c9@yahoo.com> <vidtpt$pon$1@gal.iecc.com>
 <2024Nov30.072829@mips.complang.tuwien.ac.at> <viir36$2qq41$9@dont-email.me>
 <f837d724b113e20e38aa71dd14cdf500@www.novabbs.org>
 <vijc3q$33feh$1@dont-email.me> <vilkrn$3k21l$15@dont-email.me>
 <jwvcyi87lva.fsf-monnier+comp.arch@gnu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 04 Dec 2024 01:56:48 +0100 (CET)
Injection-Info: dont-email.me; posting-host="18f532fff7cb0dbc37a1aea16bf9bfbd";
	logging-data="477479"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+xAWFm1VPEJqJpQz5MJ1JzbXdMoRmPFpo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:xFjQcfsHhHgbmi5/sz7uyY/BK1A=
In-Reply-To: <jwvcyi87lva.fsf-monnier+comp.arch@gnu.org>
Content-Language: en-US
Bytes: 2229

On 12/3/2024 8:51 AM, Stefan Monnier wrote:
>> another way to steal bits is over alignment.
> 
> Yup.  I keep lamenting that Alpha didn't go for bit-addressed memory,
> which would have given us 3 extra free bits from alignment (as well as
> allowing pointers to bits and bitfields).

;^)

Wrt stealing bits I always revert back to the original pointer when I 
use it for anything to do with the system. Now, actually using the 
stolen bits, well we can over align on a _large_ boundary and use them 
for a smallish reference count and/or version counter. We can use them 
for state machines in some clever lock-free algorithms. We just need to 
only use the stolen bits for _our_ logic. Mask them off, get back to the 
original pointer "value" before we use that pointer for what's its 
pointing too. Never deference a pointer with stolen bits!!!!!!!!!!!!!!!!!!

Fair enough?