Skip to content

Conversation

@eregon
Copy link
Member

@eregon eregon commented Feb 3, 2024

@eregon eregon requested a review from kddnewton February 3, 2024 11:39
* Because installing JVMCI now needs to have graal cloned or clones it.
@kddnewton kddnewton merged commit 830fe7f into main Feb 3, 2024
@kddnewton kddnewton deleted the update-truffleruby-daily-job branch February 3, 2024 16:02
headius added a commit to headius/stringio that referenced this pull request Mar 13, 2024
All of these operations are leaves, so no reentrancy is necessary.
None of them make any blocking calls, either, so they should
return very quickly. And use of StringIO under concurrent load is
very unusual and unlikely to lead to contention. This patch
switches from using hard JVM synchronization to instead just spin-
lock on an atomic int value associated with the data ptr object.

Performance on a benchmark of the Prism parser from
ruby/prism#2358 shows a reduction per loop from 0.050s to 0.044s.
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.

3 participants