Path: utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!oracle!news From: omullarn@oracle.oracle.com (Oliver Mullarney) Newsgroups: comp.sys.mac.programmer Subject: Re: Tail patches Summary: "Inventive" alternatives Keywords: Patches, Tails, "The Right Thing to Do" Message-ID: <1989Nov11.214632.19112@oracle.com> Date: 11 Nov 89 21:46:32 GMT References: <1459@sequent.cs.qmc.ac.uk> <36250@apple.Apple.COM> <5056@internal.Apple.COM> <1989Nov7.212837.5146@oracle.com> <5080@internal.Apple.COM> <1467@sequent.cs.qmc.ac.uk> <2839@taux01.UUCP> Reply-To: omullarn@oracle.com (Oliver Mullarney) Followup-To: comp.sys.mac.programmer Organization: Oracle Corporation, Belmont, CA Lines: 27 In article <1467@sequent.cs.qmc.ac.uk> jeremyr@cs.qmc.ac.uk (Jeremy Roussak) writes: >As for "sometimes you just gotta," all I can say is: don't do whatever it >is you're doing that's "just gotta." Find a "more inventive" way. Well, we've had a few responses to the toilet flush tail patch issue, so perhaps someone can tell me how I can avoid the tail patches I said I "just gotta" do. I'm trying (so far, successfully) to patch a number of traps in order to monitor memory usage on the Mac. I need to create log files listing everything I can find out about memory allocation, reallocation and freeing. Sizes, stack traces and, most importantly (in this discussion) the value of the returned Handle or Pointer. Hence - tail patch NewHandle and NewPtr so that I can examine A0 for the result. I can't think of any other way (apart from sticking a JSR at the the end of the NewHandle and NewPtr glue, which I don't think I can modify. I may also end up patching NewRgn, NewWindow etc. and don't know what the story is on glue routines for these calls). Any alternatives in this case? (Not that it's crucial - these patches will never make it out into the real world - They're for development purposes only.) | Oliver Mullarney | "I have knowledge of Digital Watches, and soon I | | Oracle Corporation | shall have knowledge of Video Cassette Recorders" | | omullarn@oracle.com | Time Bandits | --------------- "Universally acknowledged to work just fine" ----------------