Skip to content

lsp/frontend/utils: Thread safety #1017

Description

@flofriday

@jaraonthe-dot-net recently ran into problems running multiple instances of OpenVADL in multiple threads causing thread safety issues.

This was mostly with the cache of Type.bits which is shared and multiple concurrent insertions causing issues.
Now @Jozott00 I think we often do caching like this across OpenVADL, right?

And @jaraonthe-dot-net can you quickly go into if could be possible to only ever invoke a single instance of the OpenVADL compiler?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions