summaryrefslogtreecommitdiff
path: root/src/include/msvc.h
Commit message (Collapse)AuthorAgeFilesLines
* WT-3297 support the gcc/clang -fvisibility=hidden flag (#3404)Keith Bostic2017-06-191-3/+1
|
* WT-2402 Pad structures to avoid cache line sharing. (#3191)Michael Cahill2016-12-151-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WT-2402 Pad structures to avoid cache line sharing. We previously used compiler alignment to avoid cache line sharing, which is problematic because we don't allocate memory with the necessary alignment, so some behavior is undefined. Instead, this change merely pads structs to ensure they won't share a cache line when allocated in an array. * Add some #if barriers around the new union's * Change where CACHE_LINE_PAD defines live and rename _START to _BEGIN * Add ax_check_compile_flag to aclocal * Lint * Allocate the TINFO structures separately to minimize false sharing. * Comment cleanup to make spell happy. * Pad the read-write locks to avoid false sharing. * Add a comment as to why we're adding -std=c11 to the compile. * whitespace * Add asserts that we're padding the structures we intended to pad. Minor cleanup, don't use #defines outside of the WiredTiger namespace.
* WT-2527: OS X compile error, missing POSIX_FADV_WILLNEED #defineKeith Bostic2016-04-011-11/+0
| | | | | OS X needs fake POSIX_FADV_XXX #defines as well as Windows, move them to os.h.
* WT-2330: in-memory configurations should not create on-disk collection filesKeith Bostic2016-03-261-0/+11
| | | | | | | | | | | | | | | | | | | | Remove Linux-specific preload and memory-mapping code from the block manager. Get rid of the block-manager calls to posix_fadvise(), support ENOTSUP returns up the stack from the underlying support. General reworking of block preload/discard code to stop attempts whenever ENOTSUP is return on a handle. Remove block manager handle open tests of cache-max and dirty-cache-max configuration conflicts with specifying direct I/O, lacking posix_fadvise and lacking sync_file_range. We can't know in the block manager what the underlying layer can do, and also, the old code was wrong, direct I/O is set on a file type basis, so testing against a specific handle open isn't correct. Inline the block-header-size function, we call it a lot and it's simply returning a size.
* WT-2492 Add WT_PTRDIFFT_FMT for print statements.Alex Gorrod2016-03-171-0/+1
| | | | Since there isn't a specifier that works on all platforms.
* Revert "WT-2372 - Add a check to confirm that the inline macro isn't already ↵David Hows2016-02-011-2/+0
| | | | | | defined when building for Windows" This reverts commit 30071564bacc5c1d64ebe464da3d976263648470.
* WT-2372 - Add a check to confirm that the inline macro isn't already defined ↵David Hows2016-02-011-0/+2
| | | | when building for Windows
* Upgrade copyright notices from 2015 to 2016.Keith Bostic2016-01-011-1/+1
|
* WT-2093 Use the C99 bool type to clarify when functions return true/false.Michael Cahill2015-09-081-2/+2
|
* WT-2052: Fix the atomic size_t type functions for MSVC.Keith Bostic2015-08-241-1/+1
|
* WT-2052: Add atomic functions for size_t type, rework btree.i toKeith Bostic2015-08-211-0/+1
| | | | | use size_t functions when updating WT_PAGE.memory_footprint and WT_PAGE_MODIFY.bytes_dirty.
* Fix from Mark B.Keith Bostic2015-08-131-1/+2
|
* Remove the ##, change this to InterlockedCompareExchange64, remove theKeith Bostic2015-08-131-2/+1
| | | | casts to _int64*, _int64 is what InterlockedCompareExchange64 expects.
* Rename atomic functions from number of bytes to number of bits.Keith Bostic2015-08-131-10/+10
|
* Update msvc.h for inlined atomic functions.Keith Bostic2015-08-131-44/+47
|
* Remove the WT_ATOMIC_CAS_VAL family of macros: use the true / false versions ↵Michael Cahill2015-05-201-11/+0
| | | | | | everywhere. refs WT-1938
* Move the file-handle types/defines from misc.h to os.h.Keith Bostic2015-03-241-0/+2
| | | | Move the size_t format string from os.h to the compiler-specific include.
* Update lint's macro definitions, whitespace cleanup.Keith Bostic2015-02-021-4/+4
|
* Struct alignment and packing for MSVCMark Benvenuto2015-01-151-1/+14
|
* Copyright notices: add MongoDB, update to 2015.Keith Bostic2015-01-041-0/+1
|
* Use builtin reader/writer lock on WindowsMark Benvenuto2014-11-041-0/+10
|
* Prefix the WT_ATOMIC_XXX macros with underscores, it's a mistake forKeith Bostic2014-10-241-30/+32
| | | | code outside of those include files to use them.
* MSVC & Clang Warning CleanupMark Benvenuto2014-10-101-33/+43
| | | | FAllocate & FTruncate fixes
* whitespaceKeith Bostic2014-10-091-1/+0
|
* Style script.Keith Bostic2014-10-091-2/+2
|
* Initial Windows PortMark Benvenuto2014-10-081-0/+59