On the 0x39E day of Apache Harmony Simon Chow wrote:
> I am studying Harmony DRLVM code as a beginner.
> When I was debugging the gc module,
> This method:
> hy_inline hythread_t VMCALL hythread_self() {
>     return tm_self_tls;
> }
> in hythread.h:515 is called frequenctly
> 
> But I am not sure whether tm_self_tls is a global var or a macro defined in
> other file.

I see only one file, where tm_self_tls is defined --
vm/include/open/hythread.h And it is defined to be a variable that
resides in Thread Local Storage. AFAIR, it stores a pointer to a
structure HyThread_public that stores thread state.

> I tried to use "si" of gdb before this method returned, but it seem go to
> some asm code without source information.
> 
> I am confused here.
> 
> -- 
> From : [EMAIL PROTECTED] School of Fudan University

-- 
Egor Pasko

Reply via email to