ScopedValue.runWhere not returning scope

Andrew Haley aph-open at littlepinkcloud.com
Mon Jun 10 16:18:27 UTC 2024


On 6/10/24 15:48, Marcin Grzejszczak wrote:
> Do I understand correctly that ScopedValues will be significantly faster
> than Thread Locals?

In some cases, yes.

> If that's the case just by returning a Scope object
> instead of expecting a lambda all the tracing libraries and all
> instrumentations that are out there will not need a major redesign. I think
> that it's worthwhile to consider such an option in that scenario.

I don't understand this.

What would a Scope object look like? What would you do with one?

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the loom-dev mailing list