Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!ames!ucsd!ucsbcsl!doner From: doner@hub.ucsb.edu (John Doner) Newsgroups: comp.sys.mac.programmer Subject: Re: Locking executable resources Summary: INIT 31 should lock INIT resources Keywords: lock init executable patch Message-ID: <1591@hub.ucsb.edu> Date: 4 May 89 00:35:09 GMT References: <4170@druco.ATT.COM> Reply-To: doner@hub.UUCP (John Doner) Distribution: comp Organization: University of California, Santa Barbara Lines: 14 In article <4170@druco.ATT.COM> jon@druco.ATT.COM (GotowJK) writes: >The segment loader locks CODE resources into memory before it jumps to >them. Why are other executable resources (particularly INIT & cdev) >not automatically locked? Sure, you can set the "locked" bit on the >resource so it loads as a locked handle, but should that really be >necessary? Why not make it automatic? > I disassembled INIT 31, and sure enough, it JSR's to INIT resources immediately after reading them in and without locking them. Looks like a bug to me. I would think that *any* executed block should be locked before being jumped to. John Doner doner@hub.ucsb.edu