Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
9c0ea7e9
Commit
9c0ea7e9
authored
Nov 01, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
da85c7cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
wcfs/internal/wcfs_virtmem.cpp
wcfs/internal/wcfs_virtmem.cpp
+5
-3
No files found.
wcfs/internal/wcfs_virtmem.cpp
View file @
9c0ea7e9
...
...
@@ -32,7 +32,7 @@ using namespace golang;
#include <wendelin/bigfile/virtmem.h>
#include <wendelin/bigfile/ram.h>
#include <wendelin/bug.h>
//
#include <wendelin/bug.h>
#include <algorithm>
#include <string>
...
...
@@ -176,7 +176,8 @@ struct _Mapping {
uint8_t
*
mem_stop
;
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
;
}
...
...
@@ -464,7 +465,8 @@ error _Mapping::_remmapblk(int64_t blk, Tid at) {
// XXX err context? blk #<blk> @<at>
_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
;
error
err
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment