/ Check-in [b28ce75f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Round all object sizes that go into computing SQLITE_CONFIG_PCACHE_HDRSZ up to a multiple of 8 bytes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b28ce75f2d3a6343dc20d581dc55afae89ab5efa
User & Date: drh 2014-12-30 00:57:29
Context
2014-12-30
12:03
Change notify2.test to check that sqlite3_blocking_step() uses CPU more efficiently than sqlite3_step(), not that it results in greater overall throughput for any specific number of threads. check-in: d904d293 user: dan tags: trunk
00:57
Round all object sizes that go into computing SQLITE_CONFIG_PCACHE_HDRSZ up to a multiple of 8 bytes. check-in: b28ce75f user: drh tags: trunk
2014-12-29
19:54
Fix the --dryrun option in releasetest.tcl. check-in: 0f9e5496 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

  9142   9142   int sqlite3BtreeIsReadonly(Btree *p){
  9143   9143     return (p->pBt->btsFlags & BTS_READ_ONLY)!=0;
  9144   9144   }
  9145   9145   
  9146   9146   /*
  9147   9147   ** Return the size of the header added to each page by this module.
  9148   9148   */
  9149         -int sqlite3HeaderSizeBtree(void){ return sizeof(MemPage); }
         9149  +int sqlite3HeaderSizeBtree(void){ return ROUND8(sizeof(MemPage)); }

Changes to src/pcache.c.

   651    651     sqlite3GlobalConfig.pcache2.xShrink(pCache->pCache);
   652    652   }
   653    653   
   654    654   /*
   655    655   ** Return the size of the header added by this middleware layer
   656    656   ** in the page-cache hierarchy.
   657    657   */
   658         -int sqlite3HeaderSizePcache(void){ return sizeof(PgHdr); }
          658  +int sqlite3HeaderSizePcache(void){ return ROUND8(sizeof(PgHdr)); }
   659    659   
   660    660   
   661    661   #if defined(SQLITE_CHECK_PAGES) || defined(SQLITE_DEBUG)
   662    662   /*
   663    663   ** For all dirty pages currently in the cache, invoke the specified
   664    664   ** callback. This is only used if the SQLITE_CHECK_PAGES macro is
   665    665   ** defined.

Changes to src/pcache1.c.

   980    980     };
   981    981     sqlite3_config(SQLITE_CONFIG_PCACHE2, &defaultMethods);
   982    982   }
   983    983   
   984    984   /*
   985    985   ** Return the size of the header on each page of this PCACHE implementation.
   986    986   */
   987         -int sqlite3HeaderSizePcache1(void){ return sizeof(PgHdr1); }
          987  +int sqlite3HeaderSizePcache1(void){ return ROUND8(sizeof(PgHdr1)); }
   988    988   
   989    989   #ifdef SQLITE_ENABLE_MEMORY_MANAGEMENT
   990    990   /*
   991    991   ** This function is called to free superfluous dynamically allocated memory
   992    992   ** held by the pager system. Memory in use by any SQLite pager allocated
   993    993   ** by the current thread may be sqlite3_free()ed.
   994    994   **