This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Fibonacci and performance


Jeff wrote:
> That could be a problem.  It would be fine if m_l_f were initialized to
> zero.

The original implementation had it initialized to zero.  Tom added what
seemed like a good optimization at the time (initialization from the Class
object).  Is it true that all we need to do is to introduce some kind of
re-ordering barrier so that neither the compiler nor the hardware would
reorder these instructions?

AG


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]