Navigation Menu

Skip to content

Commit

Permalink
windows io: add TODO comment for VirtualAlloc()
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 17, 2015
1 parent c1542ac commit fb6bf84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/io.c
Expand Up @@ -1326,6 +1326,10 @@ grn_mmap_v1(grn_ctx *ctx, HANDLE *fmo, fileinfo *fi, off_t offset, size_t length
if (fmo) {
*fmo = NULL;
}
/* TODO: Try to support VirtualAlloc() as anonymous mmap in POSIX.
* If VirtualAlloc() provides better performance rather than malloc(),
* we'll use it.
*/
return GRN_GCALLOC(length);
}
/* CRITICAL_SECTION_ENTER(fi->cs); */
Expand Down

0 comments on commit fb6bf84

Please sign in to comment.