Status: New
Owner: ----

New issue 1969 by bergur.r...@gmail.com: non-termination after optimizer run on a function with 10K inline array assignments
http://code.google.com/p/v8/issues/detail?id=1969

On the second call to the javascript function below, the optimizer apparently kicks in, but fails to terminate; the attached html file reproduces the bug.

:: node example
node v8bug_gen.js 10000 > bug.js; time node bug.js

:: node workaround:
node v8bug_gen.js 10000 > bug.js; time node --nocrankshaft bug.js

:: Environment:
chrome 18.0.1025.33 beta
Linux r2-laptop 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:12:07 UTC 2012 x86_64 GNU/Linux

:: Javascript function:
function magic() {
  var v = [];var n=700;
  v[1]=n++;
  v[2]=n++;
  v[3]=n++;
  v[4]=n++;
  v[5]=n++;
  v[6]=n++;
  v[7]=n++;
  v[8]=n++;
  ...
  v[10000]=n++;
}

Attachments:
        v8bug.html  126 KB
        v8bug_gen.js  602 bytes

--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev

Reply via email to