
13 Jan
2010
13 Jan
'10
2:28 p.m.
Am Wednesday 13 January 2010 15:08:29 schrieben Sie:
Am Tuesday 12 January 2010 21:39:16 schrieb vicente.botet: << prototype::thread_specific_ptr<int> ptr; int f(){ return *ptr; }
<< _Z1fv: .LFB4216: pushl %ebp .LCFI26: movl %gs:_ZN5boost9prototype6detail10tss_vectorE@NTPOFF, %edx movl ptr+4, %eax movl %esp, %ebp .LCFI27: popl %ebp movl (%edx), %edx leal (%eax,%eax,2), %eax movl (%edx,%eax,4), %eax movl (%eax), %eax ret
one of the indirections could be removed by storing &vector[0] in the thread-local storage instead of &vector.