From owner-cvs-all Thu Oct 1 13:06:40 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA23213 for cvs-all-outgoing; Thu, 1 Oct 1998 13:06:40 -0700 (PDT) (envelope-from owner-cvs-all) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA23190; Thu, 1 Oct 1998 13:06:27 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.1/8.8.5) with ESMTP id QAA02348; Thu, 1 Oct 1998 16:41:49 +0200 (CEST) To: Garrett Wollman cc: Alex Nash , John Birrell , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc_r/uthread uthread_gc.c Makefile.inc uthread_init.c uthread_find_thread.c uthread_kern.c uthread_create.c uthread_exit.c In-reply-to: Your message of "Thu, 01 Oct 1998 10:40:22 EDT." <199810011440.KAA20723@khavrinen.lcs.mit.edu> Date: Thu, 01 Oct 1998 16:41:49 +0200 Message-ID: <2346.907252909@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk You guys are overlooking what the variable is there for. In message <199810011440.KAA20723@khavrinen.lcs.mit.edu>, Garrett Wollman write s: >< said: > >> On Thu, Oct 01, 1998 at 10:02:06AM +0200, Poul-Henning Kamp wrote: >>> Alex, can we constrain ourselves to >actual< problems rather than >>> theoretically-possible-on-really-stupid-machines-problems ? > >> The atomicity of malloc_active++ is compiler dependent, not >> really-stupid-machine dependent. > >And, in particular, it may not be atomic on a three-operand RISC >machine. Imagine the following code sequence on an imaginary >processor: > >addil $malloc_active, %r0, %r1 >addl (%r1), %r0, %r2 >addil $1, %r2, %r3 >addl %r3, %r0, (%r1) > >-GAWollman > >-- >Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same >wollman@lcs.mit.edu | O Siem / The fires of freedom >Opinions not those of| Dance in the burning flame >MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick > -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "ttyv0" -- What UNIX calls a $20K state-of-the-art, 3D, hi-res color terminal