Skip to content

[GR-27379] Run C extensions marked as rb_ext_ractor_safe()/rb_ext_thread_safe() without the C extension lock (#2136) #3814

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

Closed
wants to merge 6 commits into from

Conversation

graalvmbot
Copy link
Collaborator

No description provided.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 18, 2025
@graalvmbot graalvmbot force-pushed the bd/run-ractor-safe-exts-in-parallel branch 4 times, most recently from 68286eb to 8e49cf3 Compare March 28, 2025 17:14
@graalvmbot graalvmbot force-pushed the bd/run-ractor-safe-exts-in-parallel branch 2 times, most recently from 748261d to 211e9d2 Compare April 3, 2025 17:42
eregon and others added 4 commits May 14, 2025 14:11
* Specifically Etc.getgrgid fails the spec in spec/ruby/library/etc/getgrgid_spec.rb
…without the C extension lock

* Fixes #2136.
* Rename *c_mutex* methods to *cext_lock* for consistency and clarity.
Linter warning
```
$ jt check_abi
These files have changed and might have affected the ABI:
lib/cext/include/ruby/internal/intern/load.h
src/main/c/cext/ractor.c
src/main/c/cext/truffleruby.c

Check the diff of this PR, and:
* if ABI has changed, then increment lib/cext/include/truffleruby/truffleruby-abi-version.h
* if ABI has not changed, then increment lib/cext/ABI_check.txt
```
@graalvmbot graalvmbot force-pushed the bd/run-ractor-safe-exts-in-parallel branch from 883c48e to 3f59a2f Compare May 14, 2025 13:53
andrykonchin and others added 2 commits May 14, 2025 16:34
* No need to check CEXT_LOCK since useCExtLock should always be false if CEXT_LOCK is false, since then the lock should never be locked.
@graalvmbot graalvmbot force-pushed the bd/run-ractor-safe-exts-in-parallel branch from 3f59a2f to f79582f Compare May 14, 2025 14:43
@graalvmbot graalvmbot closed this May 14, 2025
@graalvmbot graalvmbot deleted the bd/run-ractor-safe-exts-in-parallel branch May 14, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants