From owner-freebsd-hackers Fri Feb 9 22:22:12 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bucky.excite.com (bucky-rwcmex.excite.com [198.3.99.218]) by hub.freebsd.org (Postfix) with ESMTP id 2F1E537B491 for ; Fri, 9 Feb 2001 22:21:55 -0800 (PST) Received: from pugsly.excite.com ([199.172.148.160]) by bucky.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20010210062154.ZLZP20854.bucky.excite.com@pugsly.excite.com> for ; Fri, 9 Feb 2001 22:21:54 -0800 Message-ID: <22547061.981786114631.JavaMail.imail@pugsly.excite.com> Date: Fri, 9 Feb 2001 22:21:54 -0800 (PST) From: John Wilson To: freebsd-hackers@freebsd.org Subject: operator new with C++ and pthreads Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 192.116.157.236 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, fellow hackers, I have written my own little memory management system optimized for the needs of a multi-threaded server written in C++. I have defined my own inline void* operator new(size_t size) and inline void operator delete(void *ptr) but gcc (g++) doesn't seem to want to link them in, and uses its own __builtin_new and __builtin_delete instead. I'm using FreeBSD RELENG_4, and compile everything -pthread -static. Incidentally, the same application compiles and works correctly on NT/Win2K. :( John Wilson _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message