[BACK]Return to ptr_chck.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / gc

Diff for /OpenXM_contrib2/asir2000/gc/ptr_chck.c between version 1.4 and 1.5

version 1.4, 2002/07/24 08:00:11 version 1.5, 2003/06/24 05:11:34
Line 79  void (*GC_same_obj_print_proc) GC_PROTO((GC_PTR, GC_PT
Line 79  void (*GC_same_obj_print_proc) GC_PROTO((GC_PTR, GC_PT
         return(p);          return(p);
     }      }
     sz = WORDS_TO_BYTES(hhdr -> hb_sz);      sz = WORDS_TO_BYTES(hhdr -> hb_sz);
     if (sz > WORDS_TO_BYTES(MAXOBJSZ)) {      if (sz > MAXOBJBYTES) {
       base = (ptr_t)HBLKPTR(p);        base = (ptr_t)HBLKPTR(p);
       limit = base + sz;        limit = base + sz;
       if ((ptr_t)p >= limit) {        if ((ptr_t)p >= limit) {
Line 165  void (*GC_is_valid_displacement_print_proc) GC_PROTO((
Line 165  void (*GC_is_valid_displacement_print_proc) GC_PROTO((
     pdispl = HBLKDISPL(p);      pdispl = HBLKDISPL(p);
     map_entry = MAP_ENTRY((hhdr -> hb_map), pdispl);      map_entry = MAP_ENTRY((hhdr -> hb_map), pdispl);
     if (map_entry == OBJ_INVALID      if (map_entry == OBJ_INVALID
         || sz > MAXOBJSZ && (ptr_t)p >= (ptr_t)h + sz) {          || sz > MAXOBJBYTES && (ptr_t)p >= (ptr_t)h + sz) {
         goto fail;          goto fail;
     }      }
     return(p);      return(p);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>