<div dir="ltr">Aloha folks,<div><br></div><div>I was making some changes to Code Coverage and ran into this compiler error while I was trying to re-compile a method with code coverage tracing added to it.</div><div>In short, Code Coverage wraps each message send in a block and calls a special selector on it that evaluates it and register code coverage information of the wrapped collaborations.</div><div><br></div><div>I've found that for some methods the "genJumpLong: distance index is out of range" and I quite don't understand why.</div><div>In this case "emitCodeForWhile: stack encoder: encoder value: forValue" is called, which in turn calls "emitCodeForJump: dist encoder: encoder", which ends up raising the error a couple stack frames later.</div><div><br></div><div>As far as I understand, it looks like "the body of the while loop was long enough to make the compiler unable to generate the jump". But that's all I got :)</div><div><br></div><div>Do you have any pointers about how to avoid this altogether?</div><div>It's kind of a blocker to me, as there are some methods that cannot be analyzed by Code Coverage right now.</div><div><br></div><div>Thanks in advance!</div><div>Nico PM</div><div><br></div></div>