From owner-freebsd-hackers Sun Jun 18 22:47:44 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id E999337BBF6 for ; Sun, 18 Jun 2000 22:47:38 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id XAA32563; Sun, 18 Jun 2000 23:47:35 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id XAA53903; Sun, 18 Jun 2000 23:46:11 -0600 (MDT) Message-Id: <200006190546.XAA53903@harmony.village.org> To: Dave Preece Subject: Re: Quickie: C++ statically linked into kernel? Cc: freebsd-hackers@freebsd.org In-reply-to: Your message of "Mon, 19 Jun 2000 17:58:27 +1200." <67B808B0DD93D211ABEE0000B498356B02BCC2@internet.kbgroup.co.nz> References: <67B808B0DD93D211ABEE0000B498356B02BCC2@internet.kbgroup.co.nz> Date: Sun, 18 Jun 2000 23:46:11 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <67B808B0DD93D211ABEE0000B498356B02BCC2@internet.kbgroup.co.nz> Dave Preece writes: : > I implemented only new and delete : > and was able to get sample code to run in the kernel. : : Euuww. So the default new and delete need to be overloaded with the kernel : mode variety? (the three-parameter'd one from sys/malloc.h)? Right, OK. No. I implemented operator new() and operator delete() ala the standard and converted them in to calls to malloc. : > I punted at : > that point due to the pain in actually knowing if these things were : > being used or not. : : Due to the pain of not knowing if the overloaded new and delete were being : used? No. Due to the pain of the compiler creating things for me behind the schenes. Also, I had more instability in the kernel when I had this enabled for reasons unknown. Likely due to the 2.7.x g++ we had at the time. There were also some other problems that I don't recall now too that also lead me to the decision to punt. Sadly, I no longer have a copy of the stuff (I just looked). That was two disk crashes ago and was one of the reasons I converted to be a dues paying member of the church of the daily backup :-) Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message