[bajos] r917 committed - [No log message]

1 view
Skip to first unread message

ba...@googlecode.com

unread,
Sep 14, 2011, 5:18:49 AM9/14/11
to bajo...@googlegroups.com
Revision: 917
Author: burkhart.holznagel
Date: Wed Sep 14 02:15:02 2011
Log: [No log message]
http://code.google.com/p/bajos/source/detail?r=917

Modified:
/trunk/bajos/JVM/heap.c

=======================================
--- /trunk/bajos/JVM/heap.c Sun Aug 7 04:13:08 2011
+++ /trunk/bajos/JVM/heap.c Wed Sep 14 02:15:02 2011
@@ -60,21 +60,19 @@
/* erkennnen circularer referencen on heap ohne bezug zu opstack !!*/
if ((heapTop + length - 1) < MAXHEAP)
{
- HEAPOBJECTMARKER(heapTop).length = length;
+ HEAPOBJECTMARKER(heapTop).length = length; // get exact length
slots
heapTop += length;
return heapTop - length;
} /* free space on heap*/
-
u2 nextElementPos = 0;
do /* first fit*/
{
if ((HEAPOBJECTMARKER(nextElementPos).status == HEAPFREESPACE)
- && ((HEAPOBJECTMARKER(nextElementPos).length) >= length))
- return nextElementPos; /* first fit */
+ && ((HEAPOBJECTMARKER(nextElementPos).length) >= length)) {
+ return nextElementPos; // may be get more space than length
+ } /* first fit */
} while ((nextElementPos = getNextHeapObjectPos(nextElementPos)) <
heapTop);
-
checkObjects();
-
/* noch mal probieren*/
nextElementPos = 0;
do
@@ -88,7 +86,6 @@
int schmelz;

verbosePrintf("Heap merge\n");
-
for (schmelz = 0; schmelz < 20; schmelz++)
{
nextElementPos = 0;

Reply all
Reply to author
Forward
0 new messages