/ Check-in [0e44ed1b]
Login

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

Overview
Comment:In windows, round down the size of the memory mapped region to the next smaller multiple of the page size.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | experimental-mmap
Files: files | file ages | folders
SHA1:0e44ed1badde6d766f18d1373d968e5b286b15bd
User & Date: drh 2013-04-01 18:15:50
Context
2013-04-01
18:25
Add a comment to xUnfetch on windows to say that the call to winUnmapfile() might be unnecessary. check-in: e3c63c31 user: drh tags: experimental-mmap
18:15
In windows, round down the size of the memory mapped region to the next smaller multiple of the page size. check-in: 0e44ed1b user: drh tags: experimental-mmap
17:58
Merge accidental fork. check-in: 5f4437c0 user: dan tags: experimental-mmap
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

3564
3565
3566
3567
3568
3569
3570

3571
3572
3573
3574
3575
3576
3577
    if( rc ){
      return SQLITE_IOERR_FSTAT;
    }
  }
  if( nMap>pFd->mmapLimit ){
    nMap = pFd->mmapLimit;
  }

 
  if( nMap==0 && pFd->mmapSize>0 ){
    winUnmapfile(pFd);
  }
  if( nMap!=pFd->mmapSize ){
    void *pNew = 0;
    DWORD protect = PAGE_READONLY;







>







3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
    if( rc ){
      return SQLITE_IOERR_FSTAT;
    }
  }
  if( nMap>pFd->mmapLimit ){
    nMap = pFd->mmapLimit;
  }
  nMap &= ~(sqlite3_int64)(winSysInfo.dwPageSize - 1);
 
  if( nMap==0 && pFd->mmapSize>0 ){
    winUnmapfile(pFd);
  }
  if( nMap!=pFd->mmapSize ){
    void *pNew = 0;
    DWORD protect = PAGE_READONLY;