Project

General

Profile

Actions

Architecture #3136

closed

Make sure all the recursive calls are tail-recursive and considered as this by the compiler

Added by Nicolas CHARLES about 11 years ago. Updated almost 4 years ago.

Status:
Rejected
Priority:
5
Assignee:
-
Category:
Architecture - Code maintenance
Effort required:
Name check:
Fix check:
Regression:

Description

We tried our best to have tail-recursive methods in our code. However, if the method is neither private nor final, the compiler won't consider it as this, and won't optimize it. This may lead to dreaded java.lang.StackOverflowError
To make sure the compiler is optimizing it, we should @tailrec all these calls

Actions #1

Updated by François ARMAND almost 4 years ago

  • Status changed from New to Rejected

We are doing what we can :) We now more @tailrec.

Actions

Also available in: Atom PDF