jitmem stat fix
Patrick Tullmann
tullmann at cs.utah.edu
Fri May 21 12:43:38 PDT 1999
The 'jitmem-codeblock' stat was being updated incorrectly. This patch
to kaffevm/jit/machine.c fixes it. (The first one was missing a
(jlong) cast and the second one should be adding (not subtracting) the
codeblock size.)
-Pat
RCS file: /home/cvspublic/kaffe/kaffe/kaffevm/jit/machine.c,v
retrieving revision 1.29
diff -u -b -r1.29 machine.c
--- machine.c 1999/05/05 19:06:24 1.29
+++ machine.c 1999/05/21 19:51:17
@@ -530,7 +530,8 @@
codeblock_size = ALLOCCODEBLOCKSZ;
}
codeblock = KMALLOC(codeblock_size + CODEBLOCKREDZONE);
- addToCounter(&jitcodeblock, "jitmem-codeblock", 1, GCSIZEOF(codeblock));
+ addToCounter(&jitcodeblock, "jitmem-codeblock", 1,
+ (jlong)GCSIZEOF(codeblock));
CODEPC = 0;
}
@@ -552,7 +553,7 @@
-(jlong)GCSIZEOF(codeblock));
codeblock = KREALLOC(codeblock, codeblock_size + CODEBLOCKREDZONE);
addToCounter(&jitcodeblock, "jitmem-codeblock", 0,
- -GCSIZEOF(codeblock));
+ (jlong)GCSIZEOF(codeblock));
}
/* Generate sequences */
More information about the kaffe
mailing list