Fwd: Structured Concurrency - Stacktrace in tree hierarchical structure

Abdul Muneer K abdul.kolarkunnu at gmail.com
Fri Nov 29 15:30:16 UTC 2024


Oh, yes possible. Thanks for the details.

Regards,
Muneer

On Fri, Nov 29, 2024 at 8:14 PM Alan Bateman <alan.bateman at oracle.com>
wrote:

> On 29/11/2024 11:38, Abdul Muneer K wrote:
> > Yes, I was expecting the nesting on the raw JSON. Volkan explained
> > enough to understand the issue of nesting at the raw JSON, Thanks.
> >
> > Regarding the naming, suppose we create a StructuredTaskScope with
> > default constructor(without a custom thread factory), can we set a
> > custom name to each subtask? If we can set a name for subtasks, it
> > will be easy to trace the threads from the thread dump.
> >
> Code executing in the subtask can use
> Thread.currentThread().setName(name), or the Callable can be wrapped to
> do the same. So yes, possible if you don't specify a ThreadFactory.
>
> -Alan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20241129/b01c4395/attachment-0001.htm>


More information about the loom-dev mailing list