[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnet ./ChangeLog engine/call.c
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] pnet ./ChangeLog engine/call.c |
Date: |
Sun, 26 Feb 2006 16:44:34 +0000 |
CVSROOT: /cvsroot/dotgnu-pnet
Module name: pnet
Branch:
Changes by: Klaus Treichel <address@hidden> 06/02/26 16:44:34
Modified files:
. : ChangeLog
engine : call.c
Log message:
Fix a bug in engine/call.c to get the right size for the object to
create.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dotgnu-pnet/pnet/ChangeLog.diff?tr1=1.3296&tr2=1.3297&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/dotgnu-pnet/pnet/engine/call.c.diff?tr1=1.38&tr2=1.39&r1=text&r2=text
Patches:
Index: pnet/ChangeLog
diff -u pnet/ChangeLog:1.3296 pnet/ChangeLog:1.3297
--- pnet/ChangeLog:1.3296 Sat Feb 25 17:58:55 2006
+++ pnet/ChangeLog Sun Feb 26 16:44:34 2006
@@ -1,6 +1,8 @@
2006-02-25 Klaus Treichel <address@hidden>
- * engine/call.c: Return the this pointer for ctor calls in ILCallMethod.
+ * engine/call.c: Return the this pointer for ctor calls in ILCallMethod
and
+ use _ILLayoutClassReturn to obtain the size of the object to create
instead
+ of ILSizeOfType.
* engine/jitc.c: Exchange the return values in ILJitCallMethod to 0 for
failure and 1 for success.
Index: pnet/engine/call.c
diff -u pnet/engine/call.c:1.38 pnet/engine/call.c:1.39
--- pnet/engine/call.c:1.38 Sat Feb 25 17:34:00 2006
+++ pnet/engine/call.c Sun Feb 26 16:44:34 2006
@@ -1006,7 +1006,8 @@
if(!isArrayOrString)
{
/* We need to allocate the Object. */
- ILUInt32 size = ILSizeOfType(thread,
ILClassToType(info));
+ ILUInt32 alignment;
+ ILUInt32 size =
_ILLayoutClassReturn(_ILExecThreadProcess(thread), info, &alignment);
if(!(_this = _ILEngineAlloc(thread,
ILMethod_Owner(method), size)))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnet ./ChangeLog engine/call.c,
Klaus Treichel <=