Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromruby/ruby

Commit8c70def

Browse files
jhawthornluke-gru
andcommitted
Use ALWAYS_INLINE for vm_getinstancevariable
Recently rb_vm_getinstancevariable was introduced exposing this methodto ZJIT. On clang specifically this ended up causing the compiler not toinline into vm_exec_core and cause a significant performance regressionin optcarrot for the interpreter.Co-authored-by: Luke Gruber <luke.gru@gmail.com>
1 parent191bfcb commit8c70def

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎vm_insnhelper.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,6 +1680,7 @@ rb_vm_setclassvariable(const rb_iseq_t *iseq, const rb_control_frame_t *cfp, ID
16801680
vm_setclassvariable(iseq,cfp,id,val,ic);
16811681
}
16821682

1683+
ALWAYS_INLINE(staticVALUEvm_getinstancevariable(constrb_iseq_t*iseq,VALUEobj,IDid,IVCic));
16831684
staticinlineVALUE
16841685
vm_getinstancevariable(constrb_iseq_t*iseq,VALUEobj,IDid,IVCic)
16851686
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp