I am responsible for supporting the JSP-based application running on IBM WebSphere 6.1 (IBM J9 JVM). All JSP pages have a static include link, and in this include file there are some static Java methods declared. They are included in all JSP pages to offer "easy access" to these static utility methods. I know this is a very bad way to work, and I am working on it. But, just for the sake of curiosity, and to support my efforts to change this, I wonder how these "duplicated" static methods are optimized by the JVM JIT compiler.
- Are they optimized separately, even with the same signature?
- Does the JVM JIT compiler “see” that all these methods are the same and provide a “unified” JIT code?
java jsp compilation websphere jit
Renan Vinícius Mozone
source share