Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support creating VMs from multiple threads in C-bindings #478

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

eagletmt
Copy link
Contributor

Since all VM instances are managed by a global map, read/write of the
global map must be protected by a mutex.

Since all VM instances are managed by a global map, read/write of the
global map must be protected by a mutex.
@google-cla google-cla bot added the cla: yes label Nov 23, 2020
@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.499% when pulling c4882d4 on eagletmt:c-bindings-mutex into 0d1d4cb on google:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.499% when pulling c4882d4 on eagletmt:c-bindings-mutex into 0d1d4cb on google:master.

@sbarzowski
Copy link
Collaborator

Good catch, but it's not just a matter of VM handles, but also JsonValues used with native functions. So, this change might have some noticeable performance implications. The overhead for that is pretty big anyway, so probably not a big deal.

@sbarzowski
Copy link
Collaborator

I thought about it for a moment and I'm pretty sure it won't be noticeable performance-wise in any reasonable scenario.

@sbarzowski sbarzowski merged commit 57e6137 into google:master Nov 23, 2020
@eagletmt eagletmt deleted the c-bindings-mutex branch November 23, 2020 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants