From: muthu k. <mu...@ho...> - 2002-12-18 21:24:52
|
Hello everyone, I am using the Jikes RVM 2.0.3(IA32). I have the write barrier code which is similar to the VM_OptRCWritebarrier. I have some problem while building the VM. I am using the OptOptCollector configuration. static void resolvedPutfieldWriteBarrier(Object ref, int offset, Object value) { int oldval; int newval = VM_Magic.objectAsAddress(value); ..... ...... } In the above code, if i comment the objectAsAddress(..) line, I am able to build the VM. If i remove the comment, it is giving the build time error. But i have a similar code in Putstatic also. But it does not give any problem. like static void resolvedPutStaticWriteBarrier(int offset, Object value) { int newval = VM_Magic.objectAsAddress(value); ..... ..... } The above code is running perfectly. But the code inside the putfield gives the problem. can anyone tell me why it is happening. This is the output of ./jbuild -trace [GC 754851K->753023K(818944K), 0.0313711 secs] -methodOpt VM_Processor registerAttachedProcessor (LVM_Processor;)I -methodOpt VM_Processor unregisterAttachedProcessor (LVM_Processor;)I -methodOpt VM_Processor createNativeProcessor ()LVM_Processor; -methodOpt VM_Processor <init> (II)V [GC 755071K->753014K(818944K), 0.0240469 secs] OPT_Compiler failure during compilation of VM_Processor.<init> (II)V java.lang.RuntimeException: vm internal error at: at VM._assertionFailure(VM.java:291) at VM.assert(VM.java:282) at VM.assert(VM.java:265) at OPT_BC2IR.do_aload(OPT_BC2IR.java:2436) at OPT_BC2IR.generateFrom(OPT_BC2IR.java:338) at OPT_BC2IR.generateHIR(OPT_BC2IR.java:194) at OPT_BC2IR.generateHIR(OPT_BC2IR.java:76) at OPT_Inliner.execute(OPT_Inliner.java:351) at OPT_Inliner.execute(OPT_Inliner.java:50) at OPT_ExpandRuntimeServices.inline(OPT_ExpandRuntimeServices.java:653) at OPT_ExpandRuntimeServices.inline(OPT_ExpandRuntimeServices.java:633) at OPT_ExpandRuntimeServices.perform(OPT_ExpandRuntimeServices.java:555) at OPT_CompilerPhase.performPhase(OPT_CompilerPhase.java:110) at OPT_OptimizationPlanAtomicElement.perform(OPT_OptimizationPlanAtomicE lement.java:68) at OPT_OptimizationPlanCompositeElement.perform(OPT_OptimizationPlanComp ositeElement.java:124) at OPT_CompilationPlan.execute(OPT_CompilationPlan.java:156) at OPT_Compiler.compile(OPT_Compiler.java:228) at VM_BootImageCompiler.compile(VM_BootImageCompiler.java:90) at VM_Method.compile(VM_Method.java:371) at VM_Class.getInitialInstructions(VM_Class.java:1501) at VM_Class.instantiate(VM_Class.java:1332) at BootImageWriter2.createBootImageObjects(BootImageWriter2.java:732) at BootImageWriter2.main(BootImageWriter2.java:384) OPT_OptimizingCompilerException: ERROR produced in module:OPT_Compiler failure during compilation of VM_Processor.<init> (II)V at OPT_Compiler.fail(OPT_Compiler.java:358) at OPT_Compiler.compile(OPT_Compiler.java:245) at VM_BootImageCompiler.compile(VM_BootImageCompiler.java:90) at VM_Method.compile(VM_Method.java:371) at VM_Class.getInitialInstructions(VM_Class.java:1501) at VM_Class.instantiate(VM_Class.java:1332) at BootImageWriter2.createBootImageObjects(BootImageWriter2.java:732) at BootImageWriter2.main(BootImageWriter2.java:384) Exception in thread "main" java.lang.RuntimeException: vm internal error at: at VM._assertionFailure(VM.java:291) at VM.assert(VM.java:282) at VM.assert(VM.java:265) at VM_Magic.getESIAsProcessor(VM_Magic.java:73) at VM_ProcessorLocalState.getCurrentProcessor(VM_ProcessorLocalState.jav a:41) at VM_Processor.getCurrentProcessor(VM_Processor.java:121) at VM_Scheduler.traceback(VM_Scheduler.java:571) at VM.sysFail(VM.java:424) at VM_BootImageCompiler.compile(VM_BootImageCompiler.java:96) at VM_Method.compile(VM_Method.java:371) at VM_Class.getInitialInstructions(VM_Class.java:1501) at VM_Class.instantiate(VM_Class.java:1332) at BootImageWriter2.createBootImageObjects(BootImageWriter2.java:732) at BootImageWriter2.main(BootImageWriter2.java:384) make: *** [/tmpid/tmp1/rvmbuild/RVM.image] Error 1 -muthu _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail |