mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
All of the malloc test cases run. Still seeing failures in malloc4.test. (CVS 4272)
FossilOrigin-Name: 205d0b881d541db65837ce6cf44d58d607635bc2
This commit is contained in:
11
src/mem2.c
11
src/mem2.c
@@ -12,7 +12,7 @@
|
||||
** This file contains the C functions that implement a memory
|
||||
** allocation subsystem for use by SQLite.
|
||||
**
|
||||
** $Id: mem2.c,v 1.6 2007/08/22 20:18:22 drh Exp $
|
||||
** $Id: mem2.c,v 1.7 2007/08/22 22:04:37 drh Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -454,6 +454,15 @@ int sqlite3_memdebug_fail(int iFail, int iRepeat){
|
||||
return n;
|
||||
}
|
||||
|
||||
/*
|
||||
** This routine returns the number of successful mallocs remaining until
|
||||
** the next simulated malloc failure. -1 is returned if no simulated
|
||||
** failure is currently scheduled.
|
||||
*/
|
||||
int sqlite3_memdebug_pending(void){
|
||||
return mem.iFail-1;
|
||||
}
|
||||
|
||||
/*
|
||||
** The following two routines are used to assert that no memory
|
||||
** allocations occur between one call and the next. The use of
|
||||
|
||||
Reference in New Issue
Block a user