Re: [PATCH 02/26] jit: make trace output thread safe.

2009-08-02 Thread Pekka Enberg
On Mon, 2009-08-03 at 00:09 +0200, Tomek Grabiec wrote: > @@ -719,18 +720,18 @@ const char *stack_trace_elem_type_name(enum > stack_trace_elem_type type) > > static void show_mixed_stack_trace(struct stack_trace_elem *elem) > { > - printf("Native and JAVA stack trace:\n"); > + trace_pri

[PATCH 02/26] jit: make trace output thread safe.

2009-08-02 Thread Tomek Grabiec
Each thread has its own trace buffer to which strings are printed with trace_pritnf(). When trace_flush() is called the buffer's content is printed to stderr. trace_flush() is synchronized with other threads. if -Xtrace:threads is passed to jato, every line of trace will be printed with trailing c