[Mono-devel-list] [PATCH] Fast TLS for AMD64
bmaurer at ximian.com
Fri Feb 25 12:15:03 EST 2005
> Ben Maurer schrieb:
>> There is no need for the #ifdef PIC in mini.c, the offset thingy
>> already returns -1 in this case.
> Hmm, I guess you mean the ifdef PIC in mini-amd64.c: Did it because I
> don't know if I'm allowed to throw out the read_tls_offset_from_method
> functions.. (Don't know what this function returns if PIC is enabled..)
It returns -1. (you could have tried it out ;-).
>> MONO_THREAD_VAR_OFFSET can cast to a 32 bit type so that the stuff in
>> other places is avoided.
> I don't really see how this can be done, as I had to change the offset
> variable (that gets returned) to intptr_t, so I can do a 'movq' in the
> asm part.
> Basically it would mean to use another intermediate variable - but I
> don't know if that's better?
Since it has to be GCC anyways, you can do the `block as an expression'
thingy. (read the GCC manual).
More information about the Mono-devel-list