[rvm-research] Fixing size of metadata space?

Nathan Ricci <[email protected]>
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <CALh3YaPbiDKbBEaXDO5_-2EwjfrXGLn7Mv-HnuYMXSXT8AwgeQ@mail.gmail.com>
Hello,

         I'm trying to compare two different collectors that use a
different amount of meta-data, and as part of that I wanted to fix the size
of the metadata space. It tried to do this by chaning the call where the
metadata space is created in Plan, from:

  metaDataSpace = new RawPageSpace("meta",
      VMRequest.create());

To:
   metaDataSpace = new RawPageSpace("meta",
      VMRequest.create(10));

    In order to create a VMRequest of 10 MB, and give the metadata space an
initial size of 10 MB. However, this causes a null pointer exeception
during the build process (stack trace below).   Am I going about this the
wrong way?

         Thanks,
              Nathan Ricci, Tufts University


      java.lang.ExceptionInInitializerError
        at
org.jikesrvm.mm.mminterface.MemoryManager.getAllocationSite(MemoryManager.java:335)
        at
org.jikesrvm.compilers.baseline.ia32.BaselineCompilerImpl.emit_resolved_new(BaselineCompilerImpl.java:3373)
        at
org.jikesrvm.compilers.baseline.TemplateCompilerFramework.genCode(TemplateCompilerFramework.java:1593)
        at
org.jikesrvm.compilers.baseline.BaselineCompiler.compile(BaselineCompiler.java:250)
        at
org.jikesrvm.compilers.baseline.BaselineCompiledMethod.compile(BaselineCompiledMethod.java:165)
        at
org.jikesrvm.compilers.baseline.BaselineCompiler.compile(BaselineCompiler.java:173)
        at
org.jikesrvm.compilers.baseline.BaselineBootImageCompiler.compileMethod(BaselineBootImageCompiler.java:52)
        at
org.jikesrvm.compilers.common.BootImageCompiler.compile(BootImageCompiler.java:75)
        at
org.jikesrvm.compilers.common.BootImageCompiler.compile(BootImageCompiler.java:80)
        at
org.jikesrvm.classloader.NormalMethod.genCode(NormalMethod.java:180)
        at org.jikesrvm.classloader.RVMMethod.compile(RVMMethod.java:729)
        at
org.jikesrvm.classloader.RVMMethod.getCurrentEntryCodeArray(RVMMethod.java:713)
        at org.jikesrvm.classloader.RVMClass.instantiate(RVMClass.java:1436)
        at org.jikesrvm.classloader.RVMClass.instantiate(RVMClass.java:1413)
        at
org.jikesrvm.tools.bootImageWriter.BootImageWorker.run(BootImageWorker.java:44)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:701)
      Caused by: java.lang.NullPointerException
        at org.mmtk.policy.Space.reservedPages(Space.java:226)
        at org.mmtk.policy.Space.getPagesReserved(Space.java:501)
        at org.mmtk.policy.Space.printUsage(Space.java:640)
        at org.mmtk.policy.Space.printUsagePages(Space.java:519)
        at org.jikesrvm.mm.mmtk.Assert.fail(Assert.java:45)
        at org.mmtk.policy.Space.<init>(Space.java:152)
        at org.mmtk.policy.RawPageSpace.<init>(RawPageSpace.java:43)
        at org.mmtk.plan.Plan.<clinit>(Plan.java:162)

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/

_______________________________________________
Jikesrvm-researchers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.