X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FRtsUtils.h;h=7b38afb2f009af32852ad206eeed089bf056eec5;hb=c7268677eec041516dad5e0b804c393b8e0e9adb;hp=8825460aa58b61fe4e0a16835c2f2f19250ac250;hpb=ab01dd3748fb245fe3feacafd87f91abd1822409;p=ghc-hetmet.git diff --git a/ghc/rts/RtsUtils.h b/ghc/rts/RtsUtils.h index 8825460..7b38afb 100644 --- a/ghc/rts/RtsUtils.h +++ b/ghc/rts/RtsUtils.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: RtsUtils.h,v 1.12 2001/10/31 10:30:29 simonmar Exp $ + * $Id: RtsUtils.h,v 1.16 2003/03/31 19:19:34 sof Exp $ * * (c) The GHC Team, 1998-1999 * @@ -7,11 +7,11 @@ * * ---------------------------------------------------------------------------*/ +/* (Checked) dynamic allocation: */ extern void *stgMallocBytes(int n, char *msg); -extern void *stgMallocWords(int n, char *msg); extern void *stgReallocBytes(void *p, int n, char *msg); -extern void *stgReallocWords(void *p, int n, char *msg); extern void *stgCallocBytes(int n, int m, char *msg); +extern void stgFree(void* p); extern void barf(char *s, ...) __attribute__((__noreturn__)) ; extern void belch(char *s, ...); @@ -32,6 +32,10 @@ extern void stg_exit(I_ n) __attribute__((noreturn)); char *time_str(void); char *ullong_format_string(ullong, char *, rtsBool); +#ifdef PAR ullong msTime(void); +#endif - +#ifdef DEBUG +extern void heapCheckFail( void ); +#endif