This has been identified as a JVM compiler (HotSpot) bug in that particular version of the JVM.
You can either:
1. Revert to Sun JVM 1.5.0_5 (which does not appear to have the problem)
2. Remove the method from JIT compliation:
This is done by creating a ".hotspot_compiler" file where java is called.
See the attached file which excludes the offending method.
For tomcat, this file would go in the TOMCAT_HOME/bin directory.
For use from Alfresco source, it would go in the project directory: e.g. \alfresco-src\root\projects\repository
To confirm this file is being picked up:
You should see the following as the JVM start up:
CODE: SELECT ALL
CompilerOracle: exclude org/apache/lucene/index/IndexReader$1 doBody
When an attempt to compile this method is made, it will be rejected and you will see:
### Excluding compile: org.apache.lucene.index.IndexReader$1::doBody
If you want to see all compilation progress you can use XX:+PrintCompilation
The file should contain the following line:
CODE: SELECT ALL
exclude org/apache/lucene/index/IndexReader$1 doBody
It is possible the JVMs differ in how they find this file: \
windows下没法生成上面文件只能用下面形式:
You could use -XX:CompileCommandFile in the Java Options area of the
Java tab to specify an absolute path for the compiler directives.
-XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader$1,doBody
分享到:
相关推荐
VC调用java的简单例子。需要注意jvm.dll路径,路径不对就不能成功!
inside jvm 所有源代码,包括原理的java applet演示图,以及所有用的到的源代码
JDK是整个java开发的核心,它包含了JAVA的运行环境(JVM+Java系统类库)和JAVA工具. JDK是学好Java的第一步。不管是你要学习java编程,还是要搭建jsp web开发环境,或者是android开发环境都离不开它. 毫无疑问,...
JVM移植 JVM移植
JVM分享 Java Program in Action ——Java程序癿编译、加载不执行An implementation can be very different the “mental model”
这本数详细介绍了JAVA虚拟机的整套工作流程,并提出了优化虚拟机的几种方法。
网上下载本程序用于获取运行中的JVM系统的参数
JVM虚拟机指令集JVM虚拟机指令集JVM虚拟机指令集
java 虚拟机 简单实现 入栈 出栈 加减 功能 可以跳转
jvm面试题精选。快速应对jvm问题,全面了解jvm概况。
适合java开发者了解jvm构造,更好的认识java
关于tomcat的JVM设置参数,可以有效地管理内存,释放内存。
模拟JVM工作过程,有垃圾回收,内存分配等功能
主要是对JAVA虚拟机的介绍,对jvm的底层的详解和内存的分析
java jni thread 线程源码例子
运用代理模式,通过自定义classloader对代码加密,啊;敌法;打飞机
java虚拟机,机子上找的