|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
[rvm-research] opt bootimage build errorHello,
I've done some slight modifications to JikesRVM recently. I've only added one new class in the org.jikesrvm.mm.mmtk package. The rest of the changes are in GenMutator, Plan, VM, and etc in the MMTK module. I had no problem building a baseline or optimized runtime. But I couldn't build an optimized bootimage for the following error: ================================ build-bootimage: [echo] Building bootimage. Output redirected to : /home/peng/trunk/jikes/jikesrvm_new/target/production_ia32-linux/BootImageWriterOutput.txt [echo] MMTk properties = /home/peng/trunk/jikes/jikesrvm_new/build/mmtk/default.properties [java] BootImageWriter: compiler arg: O2 [java] Java Result: 101 [echo] BootImageCompiler: init (opt compiler) [echo] Compiler failure during compilation of < BootstrapCL, Lorg/jikesrvm/classloader/RVMClass; >.resolve ()V [echo] java.lang.NullPointerException [echo] at org.jikesrvm.compilers.opt.regalloc.LinearScan$ActiveSet.allocate(LinearScan.java:1146) [echo] at org.jikesrvm.compilers.opt.regalloc.LinearScan$LinearScanPhase.perform(LinearScan.java:322) [echo] at org.jikesrvm.compilers.opt.driver.CompilerPhase.performPhase(CompilerPhase.java:205) [echo] at org.jikesrvm.compilers.opt.driver.OptimizationPlanAtomicElement.perform(OptimizationPlanAtomicElement.java:88) [echo] at org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement.perform(OptimizationPlanCompositeElement.java:143) [echo] at org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement.perform(OptimizationPlanCompositeElement.java:143) [echo] at org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement.perform(OptimizationPlanCompositeElement.java:143) [echo] at org.jikesrvm.compilers.opt.driver.CompilationPlan.execute(CompilationPlan.java:131) [echo] at org.jikesrvm.compilers.opt.driver.OptimizingCompiler.compile(OptimizingCompiler.java:169) [echo] at org.jikesrvm.compilers.opt.driver.OptimizingBootImageCompiler.compileMethod(OptimizingBootImageCompiler.java:119) [echo] at org.jikesrvm.compilers.common.BootImageCompiler.compile(BootImageCompiler.java:75) [echo] at org.jikesrvm.compilers.common.BootImageCompiler.compile(BootImageCompiler.java:80) [echo] at org.jikesrvm.classloader.NormalMethod.genCode(NormalMethod.java:180) [echo] at org.jikesrvm.classloader.RVMMethod.compile(RVMMethod.java:729) [echo] at org.jikesrvm.classloader.RVMMethod.getCurrentEntryCodeArray(RVMMethod.java:713) [echo] at org.jikesrvm.classloader.RVMClass.instantiate(RVMClass.java:1441) [echo] at org.jikesrvm.tools.bootImageWriter.BootImageWorker.run(BootImageWorker.java:44) [echo] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [echo] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [echo] at java.lang.Thread.run(Thread.java:636) [echo] Error compiling method: < BootstrapCL, Lorg/jikesrvm/classloader/RVMClass; >.resolve ()V [echo] org.jikesrvm.compilers.opt.OptimizingCompilerException: ERROR produced in module:Compiler [echo] failure during compilation of < BootstrapCL, Lorg/jikesrvm/classloader/RVMClass; >.resolve ()V [echo] [echo] at org.jikesrvm.compilers.opt.driver.OptimizingCompiler.fail(OptimizingCompiler.java:264) [echo] at org.jikesrvm.compilers.opt.driver.OptimizingCompiler.compile(OptimizingCompiler.java:183) [echo] at org.jikesrvm.compilers.opt.driver.OptimizingBootImageCompiler.compileMethod(OptimizingBootImageCompiler.java:119) [echo] at org.jikesrvm.compilers.common.BootImageCompiler.compile(BootImageCompiler.java:75) [echo] at org.jikesrvm.compilers.common.BootImageCompiler.compile(BootImageCompiler.java:80) [echo] at org.jikesrvm.classloader.NormalMethod.genCode(NormalMethod.java:180) [echo] at org.jikesrvm.classloader.RVMMethod.compile(RVMMethod.java:729) [echo] at org.jikesrvm.classloader.RVMMethod.getCurrentEntryCodeArray(RVMMethod.java:713) [echo] at org.jikesrvm.classloader.RVMClass.instantiate(RVMClass.java:1441) [echo] at org.jikesrvm.tools.bootImageWriter.BootImageWorker.run(BootImageWorker.java:44) [echo] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [echo] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [echo] at java.lang.Thread.run(Thread.java:636) ================================ Can someone help me demystify the error messages and provide some clues for me to look into? Thank you ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jikesrvm-researchers mailing list Jikesrvm-researchers@... https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers |
|
|
Re: [rvm-research] opt bootimage build errorThis looks the same as a bug Daniel recently fixed: http://jira.codehaus.org/browse/RVM-854. Try picking up the patch in http://jikesrvm.svn.sourceforge.net/viewvc/jikesrvm?view=rev&revision=15774 |
|
|
Re: [rvm-research] opt bootimage build errorSorry, Dave
The patch didn't solve the problem. Here is the new error after the patch: ========================== build-bootimage: [echo] Building bootimage. Output redirected to : /home/peng/trunk/jikes/jikesrvm_new/target/production_ia32-linux/BootImageWriterOutput.txt [echo] MMTk properties = /home/peng/trunk/jikes/jikesrvm_new/build/mmtk/default.properties [java] BootImageWriter: compiler arg: O2 [java] Java Result: 1 [echo] BootImageCompiler: init (opt compiler) [echo] Exception in thread "main" java.lang.Error: [echo] BootImageWriter: bootimage full (need at least 5848 more bytes for code) [echo] while copying org.jikesrvm.ArchitectureSpecific$CodeArray@1c503a0:class org.jikesrvm.ArchitectureSpecific$CodeArray from null [echo] at org.jikesrvm.tools.bootImageWriter.BootImageWriter.copyToBootImage(BootImageWriter.java:1999) [echo] at org.jikesrvm.tools.bootImageWriter.BootImageWriter.processPendingEntries(BootImageWriter.java:1872) [echo] at org.jikesrvm.tools.bootImageWriter.BootImageWriter.main(BootImageWriter.java:1006) [echo] Caused by: java.lang.Error: [echo] BootImageWriter: bootimage full (need at least 5848 more bytes for code) [echo] at org.jikesrvm.tools.bootImageWriter.BootImageWriterMessages.fail(BootImageWriterMessages.java:26) [echo] at org.jikesrvm.tools.bootImageWriter.BootImage.allocateCodeStorage(BootImage.java:333) [echo] at org.jikesrvm.objectmodel.ObjectModel.allocateCode(ObjectModel.java:868) [echo] at org.jikesrvm.tools.bootImageWriter.BootImage.allocateCode(BootImage.java:278) [echo] at org.jikesrvm.tools.bootImageWriter.BootImageWriter.copyMagicArrayToBootImage(BootImageWriter.java:2298) [echo] at org.jikesrvm.tools.bootImageWriter.BootImageWriter.copyToBootImage(BootImageWriter.java:1975) [echo] ... 2 more ========================== What could be the reason for such error? Thanks Peng On Wed, 9 Sep 2009 13:51:44 -0400 David P Grove <groved@...> wrote: > > This looks the same as a bug Daniel recently fixed: > http://jira.codehaus.org/browse/RVM-854. Try picking up the patch in > http://jikesrvm.svn.sourceforge.net/viewvc/jikesrvm?view=rev&revision=15774 > > --dave > > > Peng Du <pdu@...> wrote on 09/09/2009 01:28:47 PM: > > > I've done some slight modifications to JikesRVM recently. I've only > > added one new class in the org.jikesrvm.mm.mmtk package. The rest of > > the changes are in GenMutator, Plan, VM, and etc in the MMTK module. > > > > I had no problem building a baseline or optimized runtime. But I > > couldn't build an optimized bootimage for the following error: > > > > ================================ > > build-bootimage: > > [echo] Building bootimage. Output redirected to : /home/peng/ > > trunk/jikes/jikesrvm_new/target/production_ia32-linux/ > > BootImageWriterOutput.txt > > [echo] MMTk properties = /home/peng/trunk/jikes/jikesrvm_new/ > > build/mmtk/default.properties > > [java] BootImageWriter: compiler arg: O2 > > [java] Java Result: 101 > > [echo] BootImageCompiler: init (opt compiler) > > [echo] Compiler failure during compilation of < BootstrapCL, > > Lorg/jikesrvm/classloader/RVMClass; >.resolve ()V > > [echo] java.lang.NullPointerException > > [echo] at org.jikesrvm.compilers.opt.regalloc.LinearScan > > $ActiveSet.allocate(LinearScan.java:1146) > > [echo] at org.jikesrvm.compilers.opt.regalloc.LinearScan > > $LinearScanPhase.perform(LinearScan.java:322) > > [echo] at > > org.jikesrvm.compilers.opt.driver.CompilerPhase.performPhase > > (CompilerPhase.java:205) > > [echo] at > > org.jikesrvm.compilers.opt.driver.OptimizationPlanAtomicElement.perform > > (OptimizationPlanAtomicElement.java:88) > > [echo] at > > > org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement.perform > > (OptimizationPlanCompositeElement.java:143) > > [echo] at > > > org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement.perform > > (OptimizationPlanCompositeElement.java:143) > > [echo] at > > > org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement.perform > > (OptimizationPlanCompositeElement.java:143) > > [echo] at > > org.jikesrvm.compilers.opt.driver.CompilationPlan.execute > > (CompilationPlan.java:131) > > [echo] at > > org.jikesrvm.compilers.opt.driver.OptimizingCompiler.compile > > (OptimizingCompiler.java:169) > > [echo] at > > > org.jikesrvm.compilers.opt.driver.OptimizingBootImageCompiler.compileMethod > > (OptimizingBootImageCompiler.java:119) > > [echo] at > > org.jikesrvm.compilers.common.BootImageCompiler.compile > > (BootImageCompiler.java:75) > > [echo] at > > org.jikesrvm.compilers.common.BootImageCompiler.compile > > (BootImageCompiler.java:80) > > [echo] at org.jikesrvm.classloader.NormalMethod.genCode > > (NormalMethod.java:180) > > [echo] at org.jikesrvm.classloader.RVMMethod.compile > > (RVMMethod.java:729) > > [echo] at > > org.jikesrvm.classloader.RVMMethod.getCurrentEntryCodeArray > > (RVMMethod.java:713) > > [echo] at org.jikesrvm.classloader.RVMClass.instantiate > > (RVMClass.java:1441) > > [echo] at > > org.jikesrvm.tools.bootImageWriter.BootImageWorker.run > > (BootImageWorker.java:44) > > [echo] at java.util.concurrent.ThreadPoolExecutor.runWorker > > (ThreadPoolExecutor.java:1110) > > [echo] at java.util.concurrent.ThreadPoolExecutor$Worker.run > > (ThreadPoolExecutor.java:603) > > [echo] at java.lang.Thread.run(Thread.java:636) > > [echo] Error compiling method: < BootstrapCL, Lorg/jikesrvm/ > > classloader/RVMClass; >.resolve ()V > > [echo] org.jikesrvm.compilers.opt.OptimizingCompilerException: > > ERROR produced in module:Compiler > > [echo] failure during compilation of < BootstrapCL, Lorg/ > > jikesrvm/classloader/RVMClass; >.resolve ()V > > [echo] > > [echo] at > > org.jikesrvm.compilers.opt.driver.OptimizingCompiler.fail > > (OptimizingCompiler.java:264) > > [echo] at > > org.jikesrvm.compilers.opt.driver.OptimizingCompiler.compile > > (OptimizingCompiler.java:183) > > [echo] at > > > org.jikesrvm.compilers.opt.driver.OptimizingBootImageCompiler.compileMethod > > (OptimizingBootImageCompiler.java:119) > > [echo] at > > org.jikesrvm.compilers.common.BootImageCompiler.compile > > (BootImageCompiler.java:75) > > [echo] at > > org.jikesrvm.compilers.common.BootImageCompiler.compile > > (BootImageCompiler.java:80) > > [echo] at org.jikesrvm.classloader.NormalMethod.genCode > > (NormalMethod.java:180) > > [echo] at org.jikesrvm.classloader.RVMMethod.compile > > (RVMMethod.java:729) > > [echo] at > > org.jikesrvm.classloader.RVMMethod.getCurrentEntryCodeArray > > (RVMMethod.java:713) > > [echo] at org.jikesrvm.classloader.RVMClass.instantiate > > (RVMClass.java:1441) > > [echo] at > > org.jikesrvm.tools.bootImageWriter.BootImageWorker.run > > (BootImageWorker.java:44) > > [echo] at java.util.concurrent.ThreadPoolExecutor.runWorker > > (ThreadPoolExecutor.java:1110) > > [echo] at java.util.concurrent.ThreadPoolExecutor$Worker.run > > (ThreadPoolExecutor.java:603) > > [echo] at java.lang.Thread.run(Thread.java:636) > > ================================ > > > > Can someone help me demystify the error messages and provide some > > clues for me to look into? > > > > > > Thank you > > > > > > > > > ------------------------------------------------------------------------------ > > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - > > andfocus > on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Jikesrvm-researchers mailing list > > Jikesrvm-researchers@... > > https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jikesrvm-researchers mailing list Jikesrvm-researchers@... https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers |
|
|
Re: [rvm-research] opt bootimage build errorPeng Du <pdu@...> wrote on 09/09/2009 02:15:22 PM: |
|
|
Re: [rvm-research] opt bootimage build errorThanks again, Dave
As I did what you suggested and incremented both the BOOT_IMAGE_DATA_SIZE and BOOT_IMAGE_CODE_SIZE to 128Mb. The compilation still failed with that error. As I said, the modification is pretty trivial and I've only added one small class, which shouldn't increase the code size by much. It seems there is some sort of infinite loop/recursion going on in the creation of the bootimage. However I didn't see or recall any of this structure in the code I added. What do you think might be the culprit? Thanks Peng n Wed, 9 Sep 2009 21:40:59 -0400 David P Grove <groved@...> wrote: > > > > Peng Du <pdu@...> wrote on 09/09/2009 02:15:22 PM: > > > > The patch didn't solve the problem. Here is the new error after the > > patch: > > > it solved the first problem, and now you are on to a new one. > > > > ========================== > > build-bootimage: > > [echo] Building bootimage. Output redirected to : /home/peng/ > > trunk/jikes/jikesrvm_new/target/production_ia32-linux/ > > BootImageWriterOutput.txt > > [echo] MMTk properties = /home/peng/trunk/jikes/jikesrvm_new/ > > build/mmtk/default.properties > > [java] BootImageWriter: compiler arg: O2 > > [java] Java Result: 1 > > [echo] BootImageCompiler: init (opt compiler) > > [echo] Exception in thread "main" java.lang.Error: > > [echo] BootImageWriter: bootimage full (need at least 5848 more > > bytes for code) > > By default, we only allocate 24 MB of code space in the bootimage. It > appears that with the changes you've made, you've exceeded that. You > can edit the definition of BOOT_IMAGE_CODE_SIZE in > rvm/src-generated/HeapLayoutConstants.template to make it larger, but > it might be worth trying to figure out why you are generating so much > code first and see if you can generate less. A normal production > build on ia32-linux is only around 15 MB of code. > > --dave ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jikesrvm-researchers mailing list Jikesrvm-researchers@... https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers |
|
|
Re: [rvm-research] opt bootimage build errorPeng Du <pdu@...> wrote on 09/10/2009 12:23:43 AM: |
|
|
Re: [rvm-research] opt bootimage build errorHi Peng,
One way to blow up the code is too much use of the @Inline annotation. I think I remember that you're working in MMTk? There's already a lot of @Inline-ing going on in MMTk, so additional @Inlines can have a cascading effect. You could try removing any @Inline annotations for methods you added, and if you added any calls to existing methods with the @Inline annotation, try wrapping the callee in a method with a @NoInline annotation. Hopefully that'll allow the boot image to build, and you can narrow down the exact problem from there. Cheers, Mike On Wed, 9 Sep 2009, Peng Du wrote: > Thanks again, Dave > > As I did what you suggested and incremented both the > BOOT_IMAGE_DATA_SIZE and BOOT_IMAGE_CODE_SIZE to 128Mb. The compilation > still failed with that error. As I said, the modification is pretty > trivial and I've only added one small class, which shouldn't increase > the code size by much. It seems there is some sort of infinite > loop/recursion going on in the creation of the bootimage. However I > didn't see or recall any of this structure in the code I added. > > What do you think might be the culprit? > > > Thanks > > > Peng > > > > > n Wed, 9 Sep 2009 21:40:59 -0400 > David P Grove <groved@...> wrote: > >> >> >> >> Peng Du <pdu@...> wrote on 09/09/2009 02:15:22 PM: >>> >>> The patch didn't solve the problem. Here is the new error after the >>> patch: >>> >> it solved the first problem, and now you are on to a new one. >> >> >>> ========================== >>> build-bootimage: >>> [echo] Building bootimage. Output redirected to : /home/peng/ >>> trunk/jikes/jikesrvm_new/target/production_ia32-linux/ >>> BootImageWriterOutput.txt >>> [echo] MMTk properties = /home/peng/trunk/jikes/jikesrvm_new/ >>> build/mmtk/default.properties >>> [java] BootImageWriter: compiler arg: O2 >>> [java] Java Result: 1 >>> [echo] BootImageCompiler: init (opt compiler) >>> [echo] Exception in thread "main" java.lang.Error: >>> [echo] BootImageWriter: bootimage full (need at least 5848 more >>> bytes for code) >> >> By default, we only allocate 24 MB of code space in the bootimage. It >> appears that with the changes you've made, you've exceeded that. You >> can edit the definition of BOOT_IMAGE_CODE_SIZE in >> rvm/src-generated/HeapLayoutConstants.template to make it larger, but >> it might be worth trying to figure out why you are generating so much >> code first and see if you can generate less. A normal production >> build on ia32-linux is only around 15 MB of code. >> >> --dave > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Jikesrvm-researchers mailing list > Jikesrvm-researchers@... > https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jikesrvm-researchers mailing list Jikesrvm-researchers@... https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers |
| Free embeddable forum powered by Nabble | Forum Help |