diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2024-04-29 15:55:10 -0400 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2024-04-29 16:36:27 -0400 |
| commit | 470eceff8fba796418c77319262e01b9d278a9fe (patch) | |
| tree | 55ab0ae831966b421552e562026e9751cbae0110 /spec/ruby/core | |
| parent | de0ad3be8ee0ac3b1f8e97dae934e82951721061 (diff) | |
YJIT: Remove CString allocation when using `src_loc!()`
Since we often take the VM lock as the first thing we do when entering
YJIT, and that needs a `src_loc!()`, this removes a allocation from
that. The main trick here is `concat!(file!(), '\0')` to get a C string
statically baked into the binary.
Diffstat (limited to 'spec/ruby/core')
0 files changed, 0 insertions, 0 deletions
