Gareth Rees
c71e35f3c1
Catch-up merge from masters sources @186519 to branch/2014-04-17/describe.
...
Copied from Perforce
Change: 186526
ServerID: perforce.ravenbrook.com
2014-06-12 13:45:22 +01:00
Gareth Rees
daaef7b14c
Ensure coverage of rangedescribe.
...
Copied from Perforce
Change: 186012
ServerID: perforce.ravenbrook.com
2014-05-11 21:41:34 +01:00
Gareth Rees
add3e4bf93
Consistent order stream, depth.
...
Copied from Perforce
Change: 186001
ServerID: perforce.ravenbrook.com
2014-05-11 18:30:23 +01:00
Gareth Rees
c44f2d6a20
Correct indentation of describe output by passing depth parameter to describe functions and to writef.
...
Call Describe functions from test cases so that we get coverage.
Copied from Perforce
Change: 186000
ServerID: perforce.ravenbrook.com
2014-05-11 18:20:38 +01:00
Gareth Rees
4ed8190265
Back out change 185626 (violates the design.mps.writef.snazzy).
...
Copied from Perforce
Change: 185941
ServerID: perforce.ravenbrook.com
2014-05-02 12:44:31 +01:00
Gareth Rees
d83fbf6b09
Correct indentation of describe output.
...
Copied from Perforce
Change: 185626
ServerID: perforce.ravenbrook.com
2014-04-17 13:36:42 +01:00
Gareth Rees
0c2cd2ab6d
Catch-up merge from master sources to branch/2014-03-30/addrset.
...
Copied from Perforce
Change: 185288
ServerID: perforce.ravenbrook.com
2014-04-07 15:02:09 +01:00
Gareth Rees
a3055d56c0
New module failover implements a fail-over allocator as a land class.
...
Use Failover in MVT and MVFF.
Test Failover in landtest.
Implementation of LandFindInZones for Freelist (untested).
Remove signature from RangeStruct so we can embed it without a space cost.
Copied from Perforce
Change: 185196
ServerID: perforce.ravenbrook.com
2014-04-03 12:52:23 +01:00
Gareth Rees
96d1aec2b6
Catch-up merge from master/...@184830 to nailboard branch.
...
Copied from Perforce
Change: 184951
ServerID: perforce.ravenbrook.com
2014-03-21 22:19:10 +00:00
Gareth Rees
7447c0dac2
Rangeinitcopy unused; remove.
...
Copied from Perforce
Change: 184775
ServerID: perforce.ravenbrook.com
2014-03-13 12:30:16 +00:00
Richard Brooksby
f55d451b86
Improving rangecopy based on code review suggestion < https://info.ravenbrook.com/mail/2014/03/10/17-01-58/0/ >.
...
Copied from Perforce
Change: 184743
ServerID: perforce.ravenbrook.com
2014-03-12 11:30:05 +00:00
Gareth Rees
1320687ab1
New test program nailboardtest.
...
Copied from Perforce
Change: 184570
ServerID: perforce.ravenbrook.com
2014-02-26 22:41:22 +00:00
Gareth Rees
4a983b9852
Refactor nailboard code from poolamc.c into a new nailboard module.
...
Nailboard design document contains the draft design for the new module.
New functions on Range objects, and documentation thereof: RangeInitCopy, RangeIsEmpty, RangeContains.
Copied from Perforce
Change: 184022
ServerID: perforce.ravenbrook.com
2014-01-15 17:59:02 +00:00
Gareth Rees
7dc558b489
Rename cbstest.c to fbmtest.c (free block management test) and generalize it so that it tests both the cbs and freelist modules.
...
Split FreelistFind into FreelistFindFirst and FreelistFindLast so that the interface exactly matches the CBS interface.
Fix errors in freelist.c: missing computation of size in FreelistBlockSetLimit; update linked list correct in coalesceRight case in FreelistInsert.
Avoid compiler warnings in freelist.c.
In cbs.c: use $U for Booleans ($B is for bit tables).
Copied from Perforce
Change: 182397
ServerID: perforce.ravenbrook.com
2013-06-02 21:34:23 +01:00
Gareth Rees
71a2c572a0
Use range objects in the cbs interface instead of base, limit pairs. the idea is that freelist and cbs should offer similar interfaces so that the testing code can be shared.
...
Copied from Perforce
Change: 182364
ServerID: perforce.ravenbrook.com
2013-05-31 16:29:26 +01:00
Gareth Rees
ae5a06f21b
Fix review comments from < https://info.ravenbrook.com/mail/2013/05/28/22-21-11/0/ >:
...
* Rename RangeOverlap to RangesOverlap.
* MVFF shouldn't assume that CBSInsert and CBSDelete can't fail.
* Remove unused function mps_mvff_stat.
* Don't call range methods in RangeCheck.
* RangeInit can't fail, so return void.
Copied from Perforce
Change: 182297
ServerID: perforce.ravenbrook.com
2013-05-29 12:19:19 +01:00
Gareth Rees
a7c70df226
Ensure the emergency branch compiles and runs on lii6gc:
...
No need for <string.h> in mpsi.c (this defines a function "index" on Linux).
Need more headers in range.c so that it will compile on its own.
Need UNUSED() declarations for some variables in cbstest.c.
Copied from Perforce
Change: 182113
ServerID: perforce.ravenbrook.com
2013-05-23 13:42:08 +01:00
Gareth Rees
69c8559583
New function rangeisaligned; add avert to other range functions.
...
Copied from Perforce
Change: 182069
ServerID: perforce.ravenbrook.com
2013-05-22 09:41:45 +01:00
Gareth Rees
6d0b5ec1fa
Follow rules in design/sig.
...
Copied from Perforce
Change: 182052
ServerID: perforce.ravenbrook.com
2013-05-21 18:41:03 +01:00
Gareth Rees
c1b38d0423
Range design.
...
Copied from Perforce
Change: 182035
ServerID: perforce.ravenbrook.com
2013-05-21 14:52:27 +01:00
Gareth Rees
a3e4f9f493
Add function versions of range{base,limit,size} macros: these can be useful when debugging.
...
Copied from Perforce
Change: 182029
ServerID: perforce.ravenbrook.com
2013-05-21 13:20:29 +01:00
Gareth Rees
cc7e7c0172
New module range handles common operations on address ranges.
...
Copied from Perforce
Change: 182015
ServerID: perforce.ravenbrook.com
2013-05-20 20:45:52 +01:00