From 1da7911c2b75df13432dc6979a297ce321210756 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Wed, 29 Jun 2011 09:45:24 +0000 Subject: [PATCH] change bounds check --- Robust/src/Runtime/bamboo/multicoreruntime.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Robust/src/Runtime/bamboo/multicoreruntime.c b/Robust/src/Runtime/bamboo/multicoreruntime.c index 37a77257..4d8e5f0e 100644 --- a/Robust/src/Runtime/bamboo/multicoreruntime.c +++ b/Robust/src/Runtime/bamboo/multicoreruntime.c @@ -504,9 +504,10 @@ struct ___String___ * NewString(const char *str, /* Generated code calls this if we fail a bounds check */ -void failedboundschk(int num) { + void failedboundschk(int num, int index, struct ArrayObject * ao) { #ifndef TASK - printf("Array out of bounds, %d \n", num); + printf("Array out of bounds at line %u with index %u of object %x with lengt\ +h %u\n", num, index, ao, ao->___length___); #ifdef THREADS threadexit(); #elif defined MGC -- 2.34.1