ups :)

On 04.11.2012, at 15:04, Mariano Martinez Peck <[email protected]> wrote:

> 
> 
> 
> On Sun, Nov 4, 2012 at 2:45 PM, Max Leske <[email protected]> wrote:
> Only for new objects? If so, you could add an instance variable to Object and 
> store a timestamp.
> 
> 
> Well, kind of ;)  Because if you do that, your image will crash. This is 
> because the VM directly accesses (by offset) certain instVars of certain 
> classes. For example, it knows that the MethodDictionary of a class is at the 
> offset 2. So, if you add an instVar to Object all these offsets will be 
> shifted, and VM will be accessing incorrect places, and therefore, a crash :)
> 
>  
> 
> On 03.11.2012, at 15:26, Edgar J. De Cleene <[email protected]> wrote:
> 
>> Folks:
>> 
>> I wish know how old a object is.
>> 
>> Any have code for this ?
>> 
>> Thanks in advance
>> 
>> Edgar
> 
> 
> 
> 
> -- 
> Mariano
> http://marianopeck.wordpress.com
> 

Reply via email to