Has --dump-debug-dir behaviour changed in JDK9?
cnewland at chrisnewland.com
Tue Jun 9 21:25:26 UTC 2015
Has Nashorn's behaviour for dumping bytecode changed in JDK9?
$JAVA_HOME/bin/jjs -co --dump-debug-dir=. run.js
Under 8u60b18 the bytecode is produced as expected:
This visualises correctly in JITWatch and the bytecode maps back to the
source as expected.
But under 9b67 only a small amount of bytecode is output that doesn't
represent the source program:
The correct program output is produced under both executions so I don't
think the difference is down to dead code elimination.
More information about the nashorn-dev