Permalink
Switch branches/tags
Nothing to show
Commits on Mar 20, 2017
Commits on May 12, 2016
  1. NetBSD support (#10)

    NetBSD support
    ArtemKulyabin committed with May 12, 2016
Commits on Nov 28, 2015
  1. Merge pull request #7 from gilramir/master

    windows: Fix a race condition when removing file map handles.
    committed Nov 28, 2015
  2. windows: Fix a race condition when removing file map handles.

    We hold a lock on the handleMap while we remove an addr/handle
    pair from it, but we need to also include the UnampViewOfFile in
    the map. There was a window of opportunity for the OS to re-use
    the addr for a new map, and if the goroutine which mapped that addr
    also unmapped it before we tried to remove our handle from
    handleMap, we would find that our handle was missing from handleMap.
    gilramir committed Nov 28, 2015
Commits on Nov 2, 2015
  1. Merge pull request #6 from glycerine/master

    mmap_windows.go: flush() now calls FlushFileBuffers()
    committed Nov 2, 2015
  2. fix typo

    glycerine committed Nov 2, 2015
  3. mmap_windows.go: flush() now calls FlushFileBuffers() as well to matc…

    …h msync(,,MS_SYNC) used in mmap_unix.go. Fixes #5.
    glycerine committed Nov 2, 2015
Commits on Jun 28, 2015
  1. Merge pull request #4 from gilramir/master

    Fix non-zero offset mmap on Windows
    committed Jun 28, 2015
Commits on Jun 27, 2015
Commits on Jun 23, 2015
  1. Fix go fmt issues.

    gilramir committed Jun 23, 2015
  2. On Windows, allow mmaps at file offsets > 0.

    There were two problems. The first was that CreateFileMapping
    was being called with 0 as the high-order DWORD for the maximum
    size. Now the high and low order DWORDs are computed and passed
    correctly.
    
    Secondly, the maximum size passed to CreateFileMapping is not the
    size of the mmap'ed region (the "view" of the file). Instead, it
    is the maximum size of the file from which mapped views can be created.
    Thus, maximum size in this context is the file offset + the requested
    length.
    gilramir committed Jun 23, 2015
Commits on Oct 21, 2014
  1. Merge pull request #2 from dchapes/master

    Fix build for non windows, darwin, and linux GOOS.
    committed Oct 21, 2014
  2. Fix build for non windows, darwin, and linux GOOS.

    All the +build OS's have syscall.MAP_ANON now so just use it.
    However, netbsd was removed due to lack of syscall.SYS_MSYNC.
    
    --HG--
    branch : patch-1
    dchapes committed Oct 21, 2014
Commits on Nov 2, 2013
  1. Fix arguments to msync

    committed Nov 2, 2013
Commits on Oct 21, 2013
Commits on Mar 29, 2012
  1. Fix Windows compilation

    committed Mar 29, 2012
Commits on Mar 11, 2012
  1. Makefile's no longer necessary

    committed Mar 11, 2012
  2. Convert to Go 1

    committed Mar 11, 2012
Commits on Nov 14, 2011
  1. README update

    committed Nov 14, 2011
  2. Use MAP_ANON with FreeBSD

    Untested, but the documentation makes it seem like this will work.
    committed Nov 14, 2011
  3. Merge pull request #1 from slyphon/master

    Small fix for compilation on OS-X
    committed Nov 14, 2011
  4. Fix compilation on OS X

    Created two new files mmap_linux.go and mmap_darwin.go, which
    define the new const mmap.MAP_ANONYMOUS according to the
    platform-specific name (OS-X is MAP_ANON, linux is MAP_ANONYMOUS)
    slyphon committed Nov 14, 2011
Commits on May 6, 2011
Commits on Apr 9, 2011
  1. Simplify due to syscall.Mmap

    committed Apr 9, 2011
  2. Update for os.Open changes

    committed Apr 9, 2011
Commits on Apr 2, 2011
  1. Initial commit

    committed Apr 2, 2011