diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-07-29 16:59:16 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-07-29 16:59:16 +0200 |
| commit | 0f7773e8546ad2fdc6ea44a1bbc0a5d82399667f (patch) | |
| tree | 3b064619743c0063a0b8bf21d9240b8dc5502f67 /opendc-web/opendc-web-proto | |
| parent | 6d5734447048552c46a5c46dbf630f0e5be50765 (diff) | |
fix(trace/api): Do not cache trace formats
This change updates the TraceFormat lookup algorithm to prevent caching
the available trace format on first access. Since the result of
ServiceLoader depends on the Thread's context ClassLoader, they may
differ between different threads.
Furthermore, ServiceLoader maintains its own thread-local cache, so we
can instead utilize that cache and always use the results returned by
it.
Diffstat (limited to 'opendc-web/opendc-web-proto')
0 files changed, 0 insertions, 0 deletions
