[parisc-linux] Re: [RFC] Where to put arch-dependant locking in malloc/thread-m.h

Wolfram Gloger wg@malloc.de
10 Oct 2003 12:22:06 -0000


This is a multi-part message in MIME format.
--++----------20031010142201-104024179----------++
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

>The following patch fixes the issue, but I'm not content about it's
>placement in malloc/thread-m.h. Any comments about where I might put
>this in order to make maintenance easier?

The malloc-machine.h specific headers are now in place,
so you might want to propose something like the following?

Regards,
Wolfram.

2003-10-10  Carlos O'Donell  <carlos@baldric.uwo.ca>

	* sysdeps/hppa/malloc-machine.h: New file.

--++----------20031010142201-104024179----------++
Content-Type: application/octet-stream; name="malloc-machine.h"
Content-Transfer-Encoding: base64

LyogQmFzaWMgcGxhdGZvcm0taW5kZXBlbmRlbnQgbWFjcm8gZGVmaW5pdGlvbnMgZm9yIG11dGV4
ZXMsCiAgIHRocmVhZC1zcGVjaWZpYyBkYXRhIGFuZCBwYXJhbWV0ZXJzIGZvciBtYWxsb2MuCiAg
IENvcHlyaWdodCAoQykgMjAwMyBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb24sIEluYy4KICAgVGhp
cyBmaWxlIGlzIHBhcnQgb2YgdGhlIEdOVSBDIExpYnJhcnkuCgogICBUaGUgR05VIEMgTGlicmFy
eSBpcyBmcmVlIHNvZnR3YXJlOyB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IKICAgbW9k
aWZ5IGl0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIExlc3NlciBHZW5lcmFsIFB1YmxpYwog
ICBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieSB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uOyBl
aXRoZXIKICAgdmVyc2lvbiAyLjEgb2YgdGhlIExpY2Vuc2UsIG9yIChhdCB5b3VyIG9wdGlvbikg
YW55IGxhdGVyIHZlcnNpb24uCgogICBUaGUgR05VIEMgTGlicmFyeSBpc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