[Vm-dev] oops to zero
Bert Freudenberg
bert at freudenbergs.de
Sat Sep 29 20:02:47 UTC 2007
On Sep 29, 2007, at 21:56 , Keith Hodges wrote:
> I am attempting to zero all ooP pointers before writng an image to
> disk.
>
> I have added the following code to Interpreter-#writeImage:
>
> writeImageFile: imageBytes
>
> ...
> self adjustAllOopsBy: (0 - memory). self writeImageFileIO:
> imageBytes.
> self adjustAllOopsBy: memory.
> ...
>
> I managed to build a unix version of the vm with this change but it
> did not work as hoped.
> Starting an image saved with this vm crashes giving a bus error.
>
> any ideas?
The base address is stored in the image, so before calling
writeImageFileIO you would have to set memory to zero I guess.
- Bert -
More information about the Vm-dev
mailing list