Re: [Joeq-devel] ... Checkpointing
Status: Alpha
Brought to you by:
joewhaley
From: Alan R. <ala...@gm...> - 2008-08-14 19:09:07
|
Hi John, Late nights and a confused mind. The problem was as you say, I created a subclass of Address which panciked the VM. I have the CP*Address types in the image now and I am loading them via reflection. Thanks again, Al 2008/8/14 John Whaley <joe...@gm...> > Hmmm, seems like you are trying to construct a CheckpointCodeAddress, which > calls CodeAddress.<init> in its constructor. The Address types are not real > types so that could lead to problems. You may be able to include more > information for the Address types in the bootstrap phase to fix this, i.e. > make sure the Address types get put into the image and there is an > implementation of CodeAddress.<init> in there. > > Some more info about Address types here: > http://joeq.sourceforge.net/about/address_types.html > > It may be better to make CheckpointCodeAddress not subclass from > CodeAddress but just be a totally separate thing. I haven't looked at it > for a while but I don't think there are dependencies that require your type > to be a subclass of CodeAddress. > > -John > > > On Wed, Aug 13, 2008 at 7:36 AM, Alan Ryan <ala...@gm...> wrote: > >> ..... this may help piece my mail together... >> >> >> <mat...@vi...>CATE: Begin Allocation. >> Request to allocate:joeq.Runtime.SystemInterface >> >> Allocating entry 0: class joeq.Class.jq_Class size 124 0x829ef40 at 0x8: >> joeq.Runtime.SystemInterface >> Thin lock counter overflow, inflating lock... >> Exception occurred while compiling: joeq.Memory.CodeAddress.<init> ()V >> Exception: java.lang.NullPointerExceptionjava.lang.NullPointerException >> at java.lang.Throwable.fillInStackTrace(Throwable.java:57) >> at java.lang.Throwable.<init>(Throwable.java:181) >> at java.lang.Exception.<init>(Exception.java:29) >> at java.lang.RuntimeException.<init>(RuntimeException.java:32) >> at >> java.lang.NullPointerException.<init>(NullPointerException.java:36) >> at >> joeq.Runtime.ExceptionDeliverer.trap_handler(ExceptionDeliverer.java:49) >> at joeq.Class.jq_Reference.getTypeOf(jq_Reference.java:21) >> at joeq.Runtime.TypeCheck.checkcast(TypeCheck.java:34) >> at joeq.Runtime.Monitor.getMonitor(Monitor.java:138) >> at joeq.Runtime.Monitor.monitorenter(Monitor.java:97) >> at joeq.Class.jq_Method.compile(jq_Method.java:306) >> at .(Native Method) >> at >> joeq.Checkpoint.CheckpointCodeAllocator$CPBootstrapx86CodeBuffer.getCurrentAddress(CheckpointCodeAllocator. >> java:176) >> .. >> .. >> .. >> .. >> .. at joeq.Class.jq_Method.compile(jq_Method.java:309) >> at .(Native Method) >> at >> joeq.Checkpoint.RuntimeBootImage.getOrAllocateObject(RuntimeBootImage.java:221) >> at >> joeq.Checkpoint.jq_Checkpointer.checkPoint(jq_Checkpointer.java:206) >> at joeq.Checkpoint.jq_Checkpointer.<init>(jq_Checkpointer.java:74) >> at >> joeq.Scheduler.jq_NativeThread.startCheckpointer(jq_NativeThread.java:902) >> at joeq.Checkpoint.CPStub.checkPointHere(CPStub.java:40) >> at Loop.main(Loop.java:49) >> at >> joeq.Runtime.ReflectionImpl.invokestatic_V(ReflectionImpl.java:363) >> at >> joeq.Compiler.Reference.x86.x86ReferenceLinker.invokeinterface(x86ReferenceLinker.java:220) >> at joeq.Runtime.Reflection.invokestatic_V(Reflection.java:112) >> at joeq.Scheduler.jq_MainThread.run(jq_MainThread.java:25) >> >> >> >> >> -- >> T: +353 91 512601 >> >> Dept. of Information Technology. >> National University of Ireland, Galway >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Joeq-devel mailing list >> Joe...@li... >> https://lists.sourceforge.net/lists/listinfo/joeq-devel >> >> > -- T: +353 91 512601 Dept. of Information Technology. National University of Ireland, Galway |