Skip to content

Commit

Permalink
adding a comment to Gen::visitBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
vicente-romero-oracle committed Apr 22, 2024
1 parent 24c7e37 commit 59f77da
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -1074,6 +1074,11 @@ public void visitSkip(JCSkip tree) {
}

public void visitBlock(JCBlock tree) {
/* this method is heavily invoked, as expected, for deeply nested blocks, if blocks doesn't happen to have
* patterns there will be an unnecessary tax on memory consumption for these blocks, for this reason we have
* created helper methods and here at a higher level we just discriminate depending on the presence, or not,
* of patterns in a given block
*/
if (tree.patternMatchingCatch != null) {
visitBlockWithPatterns(tree);
} else {
Expand Down

0 comments on commit 59f77da

Please sign in to comment.