- 15 May, 2013 8 commits
-
-
JINMEI Tatuya authored
- explicitly include config.h in these tests - move helper function only used with USE_SHARED_MEMORY inside the ifdef block
-
Michal 'vorner' Vaner authored
Skip some code if no shared memory support is present.
-
Michal 'vorner' Vaner authored
Use bigger type, check it never overflows.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
If we throw an exception from the constructor, destructor is not called. Call the clean-up manually there, so we don't leak memory.
-
Michal 'vorner' Vaner authored
Only allocate the memory for segment holder in the constructor, set it in separate method. The allocation might throw.
-
Michal 'vorner' Vaner authored
Conflicts: src/lib/datasrc/memory/zone_writer.cc src/lib/datasrc/tests/memory/Makefile.am src/lib/datasrc/tests/memory/zone_data_updater_unittest.cc src/lib/datasrc/tests/memory/zone_finder_unittest.cc
-
- 14 May, 2013 6 commits
-
-
JINMEI Tatuya authored
-
Thomas Markwalder authored
-
JINMEI Tatuya authored
-
JINMEI Tatuya authored
-
Mukund Sivaraman authored
-
JINMEI Tatuya authored
-
- 13 May, 2013 18 commits
-
-
Thomas Markwalder authored
-
Mukund Sivaraman authored
-
Stephen Morris authored
-
Michal 'vorner' Vaner authored
Attempt to write a test that loads a bunch of zones, probably causing a relocation. However, it currently crashes and does so before the relocation happens, which is strange. It does not crash with the local segment, only with the mapped, which is stranger.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
So remove the condition to check it. Keep an assert there, just in case there was a reason originally, so we know about it.
-
Michal 'vorner' Vaner authored
Store it separately as named address and access it every time, instead of sneaking into the updater internal.
-
Michal 'vorner' Vaner authored
Just to be sure
-
Michal 'vorner' Vaner authored
Disable tests using the shared memory utilities (eg. mapped segment) when there's no shared memory support.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
Store the named address for the whole lifetime of the zone data updater. This should be better for performance.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
Currently untested, as there's no reasonable way to create a zone table with mapped segment :-(.
-
Michal 'vorner' Vaner authored
-
Mukund Sivaraman authored
... now that we handle this with an offset_ptr inside setNamedAddress() itself.
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
This commit introduces a problem that allMemoryDeallocated() doesn't work anymore, because the reserved memory is freed only when the segment is destroyed. One workaround is to temporarily release and re-reserve this memory in allMemoryDeallocated(), but that would make it a non-const method. I don't see any other clean way of doing this.
-
- 10 May, 2013 8 commits
-
-
JINMEI Tatuya authored
the original setup was not really portable and quite dangerous, making a very large file.
-
JINMEI Tatuya authored
otherwise, subsequent cleanup to be exception safe will cause a crash. and, if the remap fails simply abort(); there's no hope to recover from this situation reasonably. and clarify in shrinkToFit() why it behaves differently.
-
JINMEI Tatuya authored
I was confused at the time I removed it in #2831. these were actually necessary.
-
Jeremy C. Reed authored
-
Mukund Sivaraman authored
We don't attempt to recover in this case. Also change some error handling to simply asserts.
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-