Re: Problem in Thread.c

"Sébastien Adam" <[email protected]> Mon, 17 Apr 2006 02:18:54 +0000
Newsgroups gmane.comp.java.vm.sablevm.devel
Message-ID <[email protected]>
--===============0553755077==
Content-Type: multipart/alternative; 
	boundary="----=_Part_7929_26205161.1145240334130"

------=_Part_7929_26205161.1145240334130
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Finally, maybe the bug is in sablevm. When I set my heap size with the
following value:

#define SVM_DEFAULT_GENERATION_SIZE SVM_DEFAULT_FRAME_SIZE * 1536

Everything works perfectly...

So, depending of the heap size sablevm will produce the good result or
not...


On 4/16/06, Etienne Gagnon <[email protected]> wrote:
>
> Actually, the bug is possibly in sablevm...  Look at:
> http://sablevm.org/bugs/172
>
> Also, note that you should be able to change such value using a runtime
> system property, like
>
> sablevm --preperty=3Dsablevm.heap.increment=3D1024
> or
> sablevm --preperty=3Dsablevm.heap.default.generation.size=3D...
>
> look in vm_args.m4.c
>
> Etienne
>
> S=E9bastien Adam wrote:
> > Last news...
> >
> > When I change the heap size... for example:
> >
> > In gc_gencopy.c,
> >
> > we replace:
> > #define SVM_DEFAULT_GENERATION_SIZE SVM_DEFAULT_FRAME_SIZE * 1024
> > with:
> > #define SVM_DEFAULT_GENERATION_SIZE SVM_DEFAULT_FRAME_SIZE * 512
> >
> > I got the following error:
> > sablevm: gc_gencopy.c:455: _svmf_copy_object: Assertion `((void *)
> > obj->lockword) >=3D heap->to_generation->space.start && ((void *)
> > obj->lockword) < heap->to_generation->alloc.start' failed.
> >
> > hummmm... this is really bad... It seems to be a problem in my gc :(
>
> --
> Etienne M. Gagnon, Ph.D.            http://www.info2.uqam.ca/~egagnon/
> SableVM:                                       http://www.sablevm.org/
> SableCC:                                       http://www.sablecc.org/
>
>
>
> _______________________________________________
> SableVM-devel mailing list
> [email protected]
> http://sablevm.org/lists/control/listinfo/sablevm-devel
>
>
>
>

------=_Part_7929_26205161.1145240334130
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Finally, maybe the bug is in sablevm. When I set my heap size with the foll=
owing value:<br><br>
#define SVM_DEFAULT_GENERATION_SIZE SVM_DEFAULT_FRAME_SIZE * 1536<br>
<br>
Everything works perfectly...<br>
<br>
So, depending of the heap size sablevm will produce the good result or not.=
..<br>
<br>
<br><div><span class=3D"gmail_quote">On 4/16/06, <b class=3D"gmail_senderna=
me">Etienne Gagnon</b> &lt;<a href=3D"mailto:[email protected]">egagnon@s=
ablevm.org</a>&gt; wrote:</span><blockquote class=3D"gmail_quote" style=3D"=
border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; paddi=
ng-left: 1ex;">
Actually, the bug is possibly in sablevm...&nbsp;&nbsp;Look at:<br> <a href=
=3D"http://sablevm.org/bugs/172">http://sablevm.org/bugs/172</a><br><br>Als=
o, note that you should be able to change such value using a runtime<br>sys=
tem property, like
<br><br> sablevm --preperty=3Dsablevm.heap.increment=3D1024<br>or<br> sable=
vm --preperty=3Dsablevm.heap.default.generation.size=3D...<br><br>look in v=
m_args.m4.c<br><br>Etienne<br><br>S=E9bastien Adam wrote:<br>&gt; Last news=
...<br>
&gt;<br>&gt; When I change the heap size... for example:<br>&gt;<br>&gt; In=
 gc_gencopy.c,<br>&gt;<br>&gt; we replace:<br>&gt; #define SVM_DEFAULT_GENE=
RATION_SIZE SVM_DEFAULT_FRAME_SIZE * 1024<br>&gt; with:<br>&gt; #define SVM=
_DEFAULT_GENERATION_SIZE SVM_DEFAULT_FRAME_SIZE * 512
<br>&gt;<br>&gt; I got the following error:<br>&gt; sablevm: gc_gencopy.c:4=
55: _svmf_copy_object: Assertion `((void *)<br>&gt; obj-&gt;lockword) &gt;=
=3D heap-&gt;to_generation-&gt;space.start &amp;&amp; ((void *)<br>&gt; obj=
-&gt;lockword) &lt; heap-&gt;to_generation-&gt;
alloc.start' failed.<br>&gt;<br>&gt; hummmm... this is really bad... It see=
ms to be a problem in my gc :(<br><br>--<br>Etienne M. Gagnon, Ph.D.&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=3D=
"http://www.info2.uqam.ca/~egagnon/">http://www.info2.uqam.ca/~egagnon/
</a><br>SableVM:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;
<a href=3D"http://www.sablevm.org/">http://www.sablevm.org/</a><br>SableCC:=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;
<a href=3D"http://www.sablecc.org/">http://www.sablecc.org/</a><br><br><br>=
<br>_______________________________________________<br>SableVM-devel mailin=
g list<br><a href=3D"mailto:[email protected]">SableVM-devel@sablev=
m.org
</a><br><a href=3D"http://sablevm.org/lists/control/listinfo/sablevm-devel"=
>http://sablevm.org/lists/control/listinfo/sablevm-devel</a><br><br><br><br=
></blockquote></div><br>

------=_Part_7929_26205161.1145240334130--


--===============0553755077==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
SableVM-devel mailing list
[email protected]
http://sablevm.org/lists/control/listinfo/sablevm-devel

--===============0553755077==--