From: bdemsky Date: Wed, 29 Jun 2011 09:45:24 +0000 (+0000) Subject: change bounds check X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1da7911c2b75df13432dc6979a297ce321210756;p=IRC.git change bounds check --- 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