allocating objects
Johan Andersson
kaffe@rufus.w3.org
Thu, 6 Jul 2000 16:02:53 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0081_01BFE763.A4A8D5D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi.
I am investigating how Kaffe allocates objects.=20
I have a class with a main function. That class creates a new object. =
The class for that object is defined in another .java file.
In object.c, the function newObject(...) allocates the object. But I =
can't find out who is calling newObject(...) or when. When is the =
constructor called? Other constructors for other objects are called in =
execute_java_constructor in support.c, but not the constructor for the =
object I defined. Where is this done?
Can anyone help me out?
--
Johan
------=_NextPart_000_0081_01BFE763.A4A8D5D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am investigating how Kaffe allocates =
objects.=20
<DIV><FONT face=3DArial size=3D2>I have a class with a main function. =
That class=20
creates a new object. The class for that object is defined in another =
.java=20
file.</FONT></DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>In object.c, the function =
newObject(...) allocates=20
the object. But I can't find out who is calling newObject(...) or =
when.=20
When is the constructor called? Other constructors for other objects are =
called=20
in execute_java_constructor in support.c, but not the constructor for =
the object=20
I defined. Where is this done?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Can anyone help me out?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>--</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Johan</FONT></DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0081_01BFE763.A4A8D5D0--