Re: [PATCH] vm: allocate enough memory for inherited fields, amendment #2

2009-07-03 Thread Pekka Enberg
On Thu, 2009-07-02 at 21:43 +0200, Vegard Nossum wrote: > Allocate just the right amount of memory that we need for this class's > static fields, including fields inherited from the superclass. > > Signed-off-by: Vegard Nossum Applied, thanks! --

[PATCH] vm: allocate enough memory for inherited fields, amendment #2

2009-07-02 Thread Vegard Nossum
+output("\tprintf(\"op = %%d, left = %%#x, right = %%#x, tree = %%#x, cost1 = %%d cost2 = %%d cost3 = %%d cost4 = %%d cost5 = %%d cost6 = %%d, rule_reg = %%d, rule_stmt = %%d, rule_arg = %%d\\n\", p->op, p->left, p->right, p->tree, p->cost[1], p->cost[2], p->cost[3],p->cost[4],p->cost[5

[PATCH] vm: allocate enough memory for inherited fields, amendment #2

2009-07-02 Thread Vegard Nossum
Allocate just the right amount of memory that we need for this class's static fields, including fields inherited from the superclass. Signed-off-by: Vegard Nossum --- vm/class.c | 15 --- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/vm/class.c b/vm/class.c index

[PATCH] vm: allocate enough memory for inherited fields, amendment #2

2009-07-01 Thread Vegard Nossum
Signed-off-by: Vegard Nossum --- arch/x86/insn-selector_32.brg |7 --- vm/class.c| 15 --- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/arch/x86/insn-selector_32.brg b/arch/x86/insn-selector_32.brg index 6346454..9b918f6 100644 --- a/ar