diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2021-03-02 18:27:50 -0500 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:30 -0400 |
commit | 316f757c44513b43a831f44a1a9b64337b69b181 (patch) | |
tree | 6b39635d48bfa162d9047c93fcb930bb2f82efda /ujit_asm.c | |
parent | 2e8db8c35e5bb00a2a27657e2d091edf9e27cacd (diff) |
Runtime counters for bailing from opt_send_without_block
This allows counting things in generated code such as side exits or
different reasons for failing to compile. Runtime counters are exposed
to Ruby as `UJIT.runtime_stats` for ease of reporting and analysis.
Diffstat (limited to 'ujit_asm.c')
-rw-r--r-- | ujit_asm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ujit_asm.c b/ujit_asm.c index 6b85b58075..3eea61cf69 100644 --- a/ujit_asm.c +++ b/ujit_asm.c @@ -1640,3 +1640,9 @@ void xor(codeblock_t* cb, x86opnd_t opnd0, x86opnd_t opnd1) opnd1 ); } + +// LOCK - lock prefix for atomic shared memory operations +void cb_write_lock_prefix(codeblock_t* cb) +{ + cb_write_byte(cb, 0xF0); +} |