-
Enhancement
-
Resolution: Fixed
-
P3
-
9
-
b31
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085714 | emb-9 | Attila Szegedi | P3 | Resolved | Fixed | team |
JDK-8064215 | 8u45 | Attila Szegedi | P3 | Resolved | Fixed | b01 |
JDK-8058103 | 8u40 | Attila Szegedi | P3 | Resolved | Fixed | b06 |
JDK-8070452 | emb-8u47 | Attila Szegedi | P3 | Resolved | Fixed | team |
In JDK-8057148 we introduced a feature where the Nashorn's parser will skip nested functions when it's reparsing an outer function as the first step of recompiling it (as nested functions aren't necessary for recompilation of outer function). We also introduced a feature where functions under a certain size (those that don't exhaust the lexer's read-ahead buffer) will not be skipped (as we already lexed their source).
This enhancement instead informs the lexer to pause read-ahead lexing when it encounters a function body's left brace when it's used in recompilation context. Care is also taken in parser's functionBody() to not accidentally nudge the lexer past the pause point when it'd otherwise skip the function body.
This enhancement instead informs the lexer to pause read-ahead lexing when it encounters a function body's left brace when it's used in recompilation context. Care is also taken in parser's functionBody() to not accidentally nudge the lexer past the pause point when it'd otherwise skip the function body.
- backported by
-
JDK-8058103 Instead of not skipping small functions in parser, make lexer avoid them instead
- Resolved
-
JDK-8064215 Instead of not skipping small functions in parser, make lexer avoid them instead
- Resolved
-
JDK-8070452 Instead of not skipping small functions in parser, make lexer avoid them instead
- Resolved
-
JDK-8085714 Instead of not skipping small functions in parser, make lexer avoid them instead
- Resolved
- relates to
-
JDK-8057148 Skip nested functions on reparse
- Resolved