- 16 May, 2013 7 commits
-
-
JINMEI Tatuya authored
-
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
The create now throws on relocation, so the whole operation is tried again. No need to worry about object being relocated.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
- 15 May, 2013 11 commits
-
-
JINMEI Tatuya authored
-
JINMEI Tatuya authored
-
JINMEI Tatuya authored
-
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 16 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
-