Java static keyword bug???

Jump to navigation Jump to search
Revision as of 30 November 2017 at 15:12.
This is the thread's initial revision.

Java static keyword bug???

I've been experiencing noticeable performance regression after a refactor, which theoretically with only difference being an static keyword was added to a private final double[] (whose content is never changed).

removing that "static" keyword immediately return my performance back, and adding it back effectively decreased my score, so I'm pretty sure that is the reason. so here is my question, how Java handles static final arrays? may that be some bug introduced by optimizations?

    Xor (talk)16:12, 30 November 2017