1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

YJIT: Use proper size prefix and conversion where IL32LLP64

This commit is contained in:
Nobuyoshi Nakada 2021-12-29 14:09:37 +09:00 committed by GitHub
parent 5ca51ddde8
commit 4e4c4fab3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2021-12-29 14:09:57 +09:00
Merged: https://github.com/ruby/ruby/pull/5369

Merged-By: nobu <nobu@ruby-lang.org>
2 changed files with 3 additions and 2 deletions

View file

@ -1319,7 +1319,7 @@ invalidate_block_version(block_t *block)
regenerate_branch(cb, branch); regenerate_branch(cb, branch);
if (target_next && branch->end_addr > block->end_addr) { if (target_next && branch->end_addr > block->end_addr) {
fprintf(stderr, "branch_block_idx=%u block_idx=%u over=%ld block_size=%ld\n", fprintf(stderr, "branch_block_idx=%u block_idx=%u over=%td block_size=%td\n",
branch->block->blockid.idx, branch->block->blockid.idx,
block->blockid.idx, block->blockid.idx,
branch->end_addr - block->end_addr, branch->end_addr - block->end_addr,

View file

@ -1180,7 +1180,8 @@ rb_yjit_call_threshold(void)
return rb_yjit_opts.call_threshold; return rb_yjit_opts.call_threshold;
} }
# define PTR2NUM(x) (LONG2NUM((long)(x))) /* assume sizeof(void*) == sizeof(size_t) */
# define PTR2NUM(x) (SSIZET2NUM((ssize_t)(x)))
/** /**
* call-seq: block.id -> unique_id * call-seq: block.id -> unique_id