harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Egor Pasko <egor.pa...@gmail.com>
Subject Re: [drlvm][gc] initialization of global var: tm_self_tls
Date Fri, 30 Nov 2007 10:06:18 GMT
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 : Simon.Chow@Software School of Fudan University

Egor Pasko

View raw message