Rusty Sears
b11d7fb4a7
change declartions of fcn() to fcn(void)
2012-12-04 18:17:23 -08:00
Rusty Sears
f72498969d
calloc -> stasis_calloc
2012-11-30 18:29:28 -08:00
Sears Russell
52cd86f7f6
move myrandom into stasis/util, rename it stasis_util_random64
2011-08-31 19:25:09 +00:00
Sears Russell
9083bca1c3
Implement CLOCK replacement policy, and set it to be the default. Add flags to configure the default replacement policy.
2011-08-23 18:25:26 +00:00
Sears Russell
fbdc102d6c
change replacementPolicy to avoid a malloc / free during page pins
2011-04-20 20:25:17 +00:00
Sears Russell
04de939e42
fix null pointer derefence in lruFast.c; add unit tests to check for this bug
2010-04-21 21:34:00 +00:00
Sears Russell
c7fa929e71
This fixes in Stasis issue 22.
...
Replacement policies now track the pin count of each page that they interact with. This behavior used to live in bufferHash, and had never been ported to concurrentBufferManager.
For various reasons, the pin counts have to be updated atomically with the LRU state. This would be very difficult to do inside of concurrentBufferManager, which sometimes needs to add and remove pages to replacement policies without holding any other latches.
2010-04-20 01:09:32 +00:00
Sears Russell
d281282533
fix concurrentWrapper so that it implements the same api as the other replacement policies (it used to livelock when no pages were available. It now returns null).
2010-03-31 22:37:42 +00:00
Sears Russell
3cc48c4fc4
check for page leaks at shutdown; move myrandom() into check_includes.h, fix a number of page leaks / double frees
2009-05-30 02:23:17 +00:00
Sears Russell
5bb8dbc2b9
centralized #include <check.h>, removed obsolete (uncompiled) unit test.
2009-04-14 20:21:05 +00:00
no author
d0274c3304
Renamed 'lladd' directories and python module to 'stasis'
2007-06-11 21:36:57 +00:00