[squeak-dev] Re: Getting back to push/pop remappable oop

Igor Stasenko siguctua at gmail.com
Tue Nov 11 17:52:29 UTC 2008


btw, concerning failures to allocate memory (and therefore primitive
failure when building up the complex oop).
An allocation followed by  #storePointer:ofObject:withValue: .
If you take a look, there is no checks if object is valid or having
enough slots for storing value at given offset.
So, in case if allocation fails, and return invalid object (or
non-object), there is 100% guarantee that it will corrupt object
memory.
So, what the difference between corrupting object memory and
corrupting the stack?
Btw the latter case can be detected much faster than first one.


-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list