ruby-changes:52676
From: k0kubun <ko1@a...>
Date: Sun, 30 Sep 2018 11:22:10 +0900 (JST)
Subject: [ruby-changes:52676] k0kubun:r64888 (trunk): mjit_compile.c: improve assertion message
k0kubun 2018-09-30 11:22:00 +0900 (Sun, 30 Sep 2018) New Revision: 64888 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64888 Log: mjit_compile.c: improve assertion message intentionally inserting tab to this line to test svn bot. Also expanding the all tabs in this file, since this file does not exist in old versions and so there's no risk of conflict on backport. Modified files: trunk/mjit_compile.c Index: mjit_compile.c =================================================================== --- mjit_compile.c (revision 64887) +++ mjit_compile.c (revision 64888) @@ -97,12 +97,12 @@ comment_id(FILE *f, ID id) https://github.com/ruby/ruby/blob/trunk/mjit_compile.c#L97 e = RSTRING_END(name); fputs("/* :\"", f); for (; p < e; ++p) { - switch (c = *p) { - case '*': case '/': if (prev != (c ^ ('/' ^ '*'))) break; - case '\\': case '"': fputc('\\', f); - } - fputc(c, f); - prev = c; + switch (c = *p) { + case '*': case '/': if (prev != (c ^ ('/' ^ '*'))) break; + case '\\': case '"': fputc('\\', f); + } + fputc(c, f); + prev = c; } fputs("\" */", f); #endif @@ -168,7 +168,7 @@ compile_insns(FILE *f, const struct rb_i https://github.com/ruby/ruby/blob/trunk/mjit_compile.c#L168 pos = compile_insn(f, body, insn, body->iseq_encoded + (pos+1), pos, status, &branch); if (status->success && branch.stack_size > body->stack_max) { if (mjit_opts.warnings || mjit_opts.verbose) - fprintf(stderr, "MJIT warning: JIT stack exceeded its max\n"); + fprintf(stderr, "MJIT warning: JIT stack size (%d) exceeded its max size (%d)\n", branch.stack_size, body->stack_max); status->success = FALSE; } if (!status->success) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/