This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [RFA] Boehm GC support addition for debugging
Bryce McKinlay wrote:
Would the following work? _Jv_SuspendThread would take a
_Jv_ThreadDesc_t argument, and use _Jv_GetPlatformThreadID() on it.
GC_suspend_thread() etc would be defined in gc.h with whatever the
correct argument type is depending on the platform.
Yeah, that should work. I think this is a combination of nos. 3 and 4 on
my list:
3) Abstract what the GC wants in posix-threads.cc
(_Jv_Thread_t->data->thread) and win32-threads.cc
(_Jv_Thread_t->data->thread_obj). Still have to do #1, though...
4) Something else I've missed
:-)
Thanks!
Keith