Commit 9c0ea7e9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent da85c7cc
...@@ -32,7 +32,7 @@ using namespace golang; ...@@ -32,7 +32,7 @@ using namespace golang;
#include <wendelin/bigfile/virtmem.h> #include <wendelin/bigfile/virtmem.h>
#include <wendelin/bigfile/ram.h> #include <wendelin/bigfile/ram.h>
#include <wendelin/bug.h> //#include <wendelin/bug.h>
#include <algorithm> #include <algorithm>
#include <string> #include <string>
...@@ -176,7 +176,8 @@ struct _Mapping { ...@@ -176,7 +176,8 @@ struct _Mapping {
uint8_t *mem_stop; uint8_t *mem_stop;
int64_t blk_stop() const { int64_t blk_stop() const {
ASSERT((mem_stop - mem_start) % file->blksize == 0); //XXX reenable
//ASSERT((mem_stop - mem_start) % file->blksize == 0);
return blk_start + (mem_stop - mem_start) / file->blksize; return blk_start + (mem_stop - mem_start) / file->blksize;
} }
...@@ -464,7 +465,8 @@ error _Mapping::_remmapblk(int64_t blk, Tid at) { ...@@ -464,7 +465,8 @@ error _Mapping::_remmapblk(int64_t blk, Tid at) {
// XXX err context? blk #<blk> @<at> // XXX err context? blk #<blk> @<at>
_Mapping *mmap = this; _Mapping *mmap = this;
ASSERT(mmap->blk_start <= blk && blk < mmap->blk_stop()); //XXX reenable
//ASSERT(mmap->blk_start <= blk && blk < mmap->blk_stop());
_File *f = mmap->file; _File *f = mmap->file;
error err; error err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment