aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-03-23 19:55:21 +0000
committerdrh <drh@noemail.net>2015-03-23 19:55:21 +0000
commitd741129e2b55bf1f1853cf28d0214b83f418e324 (patch)
treed3c2f560c273d9082e8ecf296f20f46a23e6c8f0 /src/main.c
parent062cf27d0014afc0ec0b00dee2a821111a0ef121 (diff)
parent2493870d9c15769e5dbeaacd30809728e4571bbf (diff)
downloadsqlite-d741129e2b55bf1f1853cf28d0214b83f418e324.tar.gz
sqlite-d741129e2b55bf1f1853cf28d0214b83f418e324.zip
Track total memory usage using a 64-bit integer on 64-bit systems. Add
the sqlite3_status64() interface. Make the sqlite3_status() and sqlite3_status64() interfaces atomic using mutexes and verify correct mutex operation using assert() statements. FossilOrigin-Name: 6fc4e79a2350295a15ac464593ad39d904953041
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 092cbf841..696713114 100644
--- a/src/main.c
+++ b/src/main.c
@@ -128,6 +128,11 @@ int sqlite3_initialize(void){
}
#endif
+ /* If the following assert() fails on some obscure processor/compiler
+ ** combination, the work-around is to set the correct pointer
+ ** size at compile-time using -DSQLITE_PTRSIZE=n compile-time option */
+ assert( SQLITE_PTRSIZE==sizeof(char*) );
+
/* If SQLite is already completely initialized, then this call
** to sqlite3_initialize() should be a no-op. But the initialization
** must be complete. So isInit must not be set until the very end