## Summary While fuzzing ZJIT with generated programs I noticed that long methods take a surprisingly long time to compile. I tracked it down to `Assembler::handle_caller_saved_regs`: for each `CCall` it looks at every interval of t...runlevel5 (Trung Le)
alanwu (Alan Wu) wrote in #note-1: > Right, ZJIT doesn't support PowerPC and doesn't plan to for now. Thanks for the quick reply, Alan, and that's completely fair. I'm not asking for PowerPC support, and I don't expect the team to ta...runlevel5 (Trung Le)
## Summary ZJIT panics while compiling a method whose `||` condition folds to a constant, when the arm that is no longer taken contains a `>>` by a constant: ``` dead1.rb:3: [BUG] ZJIT: panicked at zjit/src/codegen.rs:774:71: c...runlevel5 (Trung Le)
## Cause The function is valid after every pass until `canonicalize` in the second iteration of the optimisation loop: 1. Iteration 1, `fold_constants`: both `a4 / 2` sites, in `bb6` and in `bb5`, are rewritten to `FixnumRShift`. Both...runlevel5 (Trung Le)
## Summary In a build with debug assertions (`--enable-zjit=dev`), ZJIT aborts while compiling a method that compares an argument with `!=` and then divides it by a power of two, once the division has been profiled with both a Fixnu...runlevel5 (Trung Le)
## Summary On Linux with glibc 2.27 or later, `get_stack()` in `thread_pthread.c` takes the guard size off the size of a thread's stack, although glibc no longer counts the guard in that size. For every thread but the main one this ...runlevel5 (Trung Le)
Three places in code that every ZJIT backend shares assume a little-endian host: 1. `gen_string_copy` (`zjit/src/codegen.rs`) reverses every 8 bytes of a short string it copies inline. 2. `rb_shape_id_offset()` (`shape.c`) returns th...runlevel5 (Trung Le)
``` $ uname -ar Linux localhost 5.4.27-0-lts #1-Alpine SMP Mon, 23 Mar 2020 18:15:20 UTC ppc64le Linux $ gcc --version gcc (Alpine 9.2.0) 9.2.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the sour...runlevel5 (Trung Le)