Skip to content

Conversation

@jkyang92
Copy link
Contributor

This makes several variables thread local so that value and readeval in interp.dd is more thread safe. This seems to fix #3927.

There are a couple more variables that are worth investigating:

  • previousLineNumber in interp.dd I think this is only used by the interactive prompt, and so it is probably fine either as thread local or global
  • intepreterDepth, errorDepth, and loadDepth. These are somewhat related, but currently only loadDepth is thread local
  • current, this seems to be only used by the debugger. Similarly to previousLineNumber it's probably fine for it to be either thread local or global, but we should think about it.

This makes several variables thread local so that value and readeval in interp.dd is more thread safe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant