Gareth Rees
d92687e063
Turn off -wunreachable-code in gcc: too many false positives.
...
Copied from Perforce
Change: 185091
ServerID: perforce.ravenbrook.com
2014-03-30 17:00:50 +01:00
Gareth Rees
f025b00534
Turn on -wunreachable-code for gcc and clang.
...
Remove unreachable code:
* No need to have different debug options or structured allocation classes for different platforms.
* Don't use STATISTIC_BEGIN, use STATISTIC_STAT.
* #ifdef away the unused code in zmess.c for testing ControlAlloc failure.
* Remove unused code from the example Scheme interpreter.
Copied from Perforce
Change: 185089
ServerID: perforce.ravenbrook.com
2014-03-30 14:26:02 +01:00
Gareth Rees
608720178b
Fix header comment for ssw3i6*.c -- win64 not win32.
...
Copied from Perforce
Change: 185086
ServerID: perforce.ravenbrook.com
2014-03-29 17:24:28 +00:00
Gareth Rees
56149eaf27
Preserve the first table entry, so as to avoid false positives when this is kept alive by a register or stack-local variable.
...
Copied from Perforce
Change: 185077
ServerID: perforce.ravenbrook.com
2014-03-28 14:27:21 +00:00
Gareth Rees
d934afafc5
Catch-up merge from master sources to branch/2014-03-21/pellesc.
...
Copied from Perforce
Change: 185074
ServerID: perforce.ravenbrook.com
2014-03-28 13:54:30 +00:00
Gareth Rees
68edf84c3b
Remove #pragma warning(disable: ...) for microsoft visual c/c++ warnings that are no longer generated by the code, so that we get the maximum checking from this compiler.
...
Copied from Perforce
Change: 185072
ServerID: perforce.ravenbrook.com
2014-03-28 13:09:14 +00:00
Gareth Rees
1572cacd63
Avoid spurious output from rmdir when running "nmake clean".
...
Copied from Perforce
Change: 185069
ServerID: perforce.ravenbrook.com
2014-03-28 12:45:11 +00:00
Gareth Rees
050a8f0a38
Make nailboards work for sizes that aren't a power of 2.
...
Copied from Perforce
Change: 185058
ServerID: perforce.ravenbrook.com
2014-03-27 20:25:27 +00:00
Gareth Rees
1e3e57a070
Build nailboardtest on windows; run it on all platforms.
...
Copied from Perforce
Change: 185041
ServerID: perforce.ravenbrook.com
2014-03-27 12:12:39 +00:00
Gareth Rees
b81e8b2cc8
Catch-up merge from master sources to branch/2014-01-15/nailboard.
...
Copied from Perforce
Change: 185029
ServerID: perforce.ravenbrook.com
2014-03-26 16:36:36 +00:00
Gareth Rees
fe68bfac83
Avoid expanding __file__ in aver in pelles c -- the compiler somehow loses its definition for __file__ in deeply nested macro expansions.
...
Copied from Perforce
Change: 185025
ServerID: perforce.ravenbrook.com
2014-03-26 13:44:02 +00:00
Gareth Rees
9aef4157fd
Fix review comments from dl < https://info.ravenbrook.com/mail/2014/03/25/17-44-56/0/ >.
...
Add __attribute__((__format__(printf))) to functions that take a printf-compatible format string (when building using GCC or Clang), so that format string mistakes can be detected statically.
Copied from Perforce
Change: 185021
ServerID: perforce.ravenbrook.com
2014-03-26 12:27:35 +00:00
Gareth Rees
028ec084ff
Fix case of mps_os_w3, spotted by rb.
...
Copied from Perforce
Change: 185013
ServerID: perforce.ravenbrook.com
2014-03-25 15:37:27 +00:00
Gareth Rees
3340bd2bf6
Uncomment event_list calls.
...
Copied from Perforce
Change: 185011
ServerID: perforce.ravenbrook.com
2014-03-25 15:12:33 +00:00
Gareth Rees
629278c469
Fixedsize function needs to take a size_t as argument.
...
Copied from Perforce
Change: 184999
ServerID: perforce.ravenbrook.com
2014-03-25 11:08:06 +00:00
Gareth Rees
d799a993a2
Support for stackprobe on w3i3pc and w3i6pc.
...
Copied from Perforce
Change: 184998
ServerID: perforce.ravenbrook.com
2014-03-25 11:05:09 +00:00
Gareth Rees
00ee0bfcc5
64-bit support for pelles c:
...
* New nmake file w3i6pc.nmk.
* New stack scanner ssw3i6pc.c supplies missing jump buffer definition.
* Some platform tests change from defined(MPS_PF_W3I6MV) to defined(MPS_OS_w3) && defined(MPS_ARCH_I6).
* Make reasonable changes to the source code to avoid warnings from Pelles C:
** Ensure that printf formats are consistent with arguments by using PRIuLONGEST and casting to ulongest_t.
** Use size_t for loop variables that index into arrays.
** Suppress "Consider changing type to 'size_t' for loop variable" warnings for the MPS core.
Copied from Perforce
Change: 184996
ServerID: perforce.ravenbrook.com
2014-03-25 10:59:09 +00:00
Gareth Rees
f0bf4bc99f
New makefile xci6ll.gmk provides way to compile the mps one file at a time on os x.
...
Copied from Perforce
Change: 184991
ServerID: perforce.ravenbrook.com
2014-03-24 21:27:35 +00:00
Gareth Rees
5bbe70609f
Support for "make -f platform.gmk testrun".
...
Copied from Perforce
Change: 184990
ServerID: perforce.ravenbrook.com
2014-03-24 21:26:42 +00:00
Gareth Rees
23446b9efe
Update file types: add +k (keyword expansion).
...
Copied from Perforce
Change: 184984
ServerID: perforce.ravenbrook.com
2014-03-24 20:36:57 +00:00
Gareth Rees
3446e7381c
Vectors, not strings.
...
Copied from Perforce
Change: 184982
ServerID: perforce.ravenbrook.com
2014-03-24 20:33:15 +00:00
Gareth Rees
a7c94b0845
Need to include <stdlib.h> for malloc and _alloca.
...
Copied from Perforce
Change: 184980
ServerID: perforce.ravenbrook.com
2014-03-24 18:53:23 +00:00
Gareth Rees
981dcb36e3
Ensure that windows.h is only included via mpswin.h, so that we always have the same set of definitions and pragmas in effect.
...
Turn on WIN32_LEAN_AND_MEAN when including windows.h to improve compilation time.
Copied from Perforce
Change: 184979
ServerID: perforce.ravenbrook.com
2014-03-24 18:49:22 +00:00
Gareth Rees
9d5266c0cc
Improved support for pelles c:
...
* Refactor nmake files so that a compiler-specific makefile is included; move Microsoft Visual C-specific options to mv.nmk.
* Add nmake files for Pelles (w3i3pc.nmk and pc.nmk).
* Rename spw3i3mv.c to spw3i3.c and spw3i6mv.c to spw3i6.c since these are also used by Pelles C.
* Make reasonable changes to the source code to avoid warnings from Pelles C:
** check results of function calls;
** avoid useless return values;
** undef max before defining it;
** ensure printf formats are checkable;
** move notreached() assertions to the end of blocks;
** suppress warnings in cases where the code shouldn't be changed ("Unreachable code", "Inline assembly code is not portable", "Structured Exception Handling is not portable").
Copied from Perforce
Change: 184977
ServerID: perforce.ravenbrook.com
2014-03-24 18:23:29 +00:00
Gareth Rees
6d76fdd813
Catch-up merge from master sources to branch/2014-03-21/pellesc.
...
Copied from Perforce
Change: 184973
ServerID: perforce.ravenbrook.com
2014-03-24 12:20:49 +00:00
Gareth Rees
f81d124529
Replace hex constant 9024eac8 (gotneach) with 4026eac8 (notreach).
...
Copied from Perforce
Change: 184972
ServerID: perforce.ravenbrook.com
2014-03-24 12:13:20 +00:00
Gareth Rees
70a45934ac
Don't list the test cases to be run in commpre.nmk: list them instead in testrun.bat for consistency with other platforms.
...
Format lists of files and test cases with one per line so that merges are easier.
Improve testrun.bat: better success/failure output; fewer gotos.
Copied from Perforce
Change: 184971
ServerID: perforce.ravenbrook.com
2014-03-24 12:12:24 +00:00
Gareth Rees
cf0d96dd0b
Ensure that all test cases call testlib_init so that the testlib assertion handler is installed: this ensures that on windows you can set mps_testlib_noabort to avoid the dialog box from abort().
...
Copied from Perforce
Change: 184965
ServerID: perforce.ravenbrook.com
2014-03-24 11:41:01 +00:00
Gareth Rees
ff8a0c71d9
Don't list the test cases to be run in the xcode project: list them in testrun.sh instead so that this is shared with the freebsd and linux platforms.
...
Format the list with one test case per line so that merges are easier.
Copied from Perforce
Change: 184958
ServerID: perforce.ravenbrook.com
2014-03-22 18:04:56 +00:00
Gareth Rees
de74b79bad
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
831c86c47b
(very) draft makefile for pelles c.
...
Copied from Perforce
Change: 184949
ServerID: perforce.ravenbrook.com
2014-03-21 18:29:36 +00:00
Gareth Rees
4ef183e62a
Mps compiles and runs using pelles c.
...
Merge code from Bruce Mitchener <https://github.com/Ravenbrook/mps-temporary/pull/2 > and from RB <https://github.com/waywardmonkeys/mps-temporary/pull/1/files >.
Split call to EVENT_LIST so that event.c compiles.
Remove useless call to va_end in seg.c.
Copied from Perforce
Change: 184948
ServerID: perforce.ravenbrook.com
2014-03-21 18:28:39 +00:00
Gareth Rees
9b9e33c6d6
Move coverage testing out of the xcode project (to avoid normal debug builds being slowed down by coverage instrumentation, and to avoid error messages when the tests are unable to update the coverage data).
...
Copied from Perforce
Change: 184931
ServerID: perforce.ravenbrook.com
2014-03-21 12:51:06 +00:00
Gareth Rees
cb17267a8e
Fix some checkleveldeep assertions:
...
1. In GlobalsPrepareToDestroy, set arenaGlobals->defaultChain to NULL before calling ChainDestroy, to avoid a failed ChainCheck inside ControlFree.
2. In GlobalsPrepareToDestroy, set arenaGlobals->lock to NULL after destroying it, to avoid a failed LockCheck inside ControlFree.
3. In TraceIdMessagesCreate, set tsMessage[ti] and tMessage[ti] together to avoid a failed TraceIdMessagesCheck inside traceMessageInit.
4. In TracePostStartMessage, set tsMessage[ti] to NULL before calling MessagePost, to avoid a failed TraceStartMessageCheck inside ControlFree.
5. Ditto for TracePostMessage and tMessage[ti].
Copied from Perforce
Change: 184924
ServerID: perforce.ravenbrook.com
2014-03-20 23:37:02 +00:00
Gareth Rees
87a1b83f20
Drop .py extension from python executables, as requested by rb.
...
Copied from Perforce
Change: 184900
ServerID: perforce.ravenbrook.com
2014-03-20 11:36:58 +00:00
Gareth Rees
ef50218e32
Update release index and bump release number accordingly.
...
Copied from Perforce
Change: 184870
ServerID: perforce.ravenbrook.com
2014-03-18 18:11:48 +00:00
Gareth Rees
6c0eaa418e
In configure.ac, parse the release name out of code/version.c.
...
This means that there is now just one place in the sources where the release name is specified.
Copied from Perforce
Change: 184830
ServerID: perforce.ravenbrook.com
2014-03-17 14:53:58 +00:00
Richard Brooksby
b91426ea91
Merging branch/2014-01-17/cbs-tract-alloc into master.
...
Copied from Perforce
Change: 184783
ServerID: perforce.ravenbrook.com
2014-03-13 15:28:06 +00:00
Richard Brooksby
b2d35664df
Apss test relies on non-zoned client arena to test tight memory condition, but client arena is zoned by default now. fixed the test to set up a non-zoned client arena.
...
Copied from Perforce
Change: 184779
ServerID: perforce.ravenbrook.com
2014-03-13 15:00:37 +00:00
Richard Brooksby
aa7c900988
Return the correct reason that arena extension failed.
...
Copied from Perforce
Change: 184777
ServerID: perforce.ravenbrook.com
2014-03-13 13:48:43 +00:00
Gareth Rees
e0e95b2a5f
Rangeinitcopy unused; remove.
...
Copied from Perforce
Change: 184775
ServerID: perforce.ravenbrook.com
2014-03-13 12:30:16 +00:00
Richard Brooksby
687c50b762
Implementing top-down (last fit) allocation in zones.
...
Copied from Perforce
Change: 184771
ServerID: perforce.ravenbrook.com
2014-03-13 12:06:28 +00:00
Richard Brooksby
c77f1f931f
Responding to code review < https://info.ravenbrook.com/mail/2014/03/12/15-42-41/0/ >.
...
Copied from Perforce
Change: 184754
ServerID: perforce.ravenbrook.com
2014-03-12 15:45:50 +00:00
Richard Brooksby
da27b88605
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
Richard Brooksby
158f94d510
Arenacv is not designed to work on a zoned client arena, even though this has become a possible combination. removed that case.
...
Copied from Perforce
Change: 184742
ServerID: perforce.ravenbrook.com
2014-03-12 10:46:44 +00:00
Richard Brooksby
061eba523c
Reponding to code review < https://info.ravenbrook.com/mail/2014/03/10/17-01-58/0/ >.
...
Renaming the arena’s “zoned CBS” back to earlier “free CBS”, especially since it might not be zoned.
Copied from Perforce
Change: 184738
ServerID: perforce.ravenbrook.com
2014-03-11 17:27:57 +00:00
Richard Brooksby
2ce13f82dc
Incomplete response to code review. see < https://info.ravenbrook.com/mail/2014/03/07/11-21-03/0/ >.
...
Copied from Perforce
Change: 184735
ServerID: perforce.ravenbrook.com
2014-03-11 16:39:11 +00:00
Richard Brooksby
2b9719e4bd
Catch-up merge from master.
...
Copied from Perforce
Change: 184732
ServerID: perforce.ravenbrook.com
2014-03-11 16:30:47 +00:00
Richard Brooksby
331be1205e
Catch-up merge from masters.
...
Copied from Perforce
Change: 184728
ServerID: perforce.ravenbrook.com
2014-03-11 16:13:39 +00:00
Richard Brooksby
1e8eec530b
Catch-up merge from branch/2014-02-22/splay-tune to pick up code review changes.
...
Copied from Perforce
Change: 184727
ServerID: perforce.ravenbrook.com
2014-03-11 16:07:19 +00:00
Richard Brooksby
1f2cf6aa56
Responding to code review < https://info.ravenbrook.com/mail/2014/03/07/18-03-14/0/ >.
...
Updating Splay Tree design document to be reasonably consistent with the current code.
Disabling tree functions not currently in use.
Copied from Perforce
Change: 184723
ServerID: perforce.ravenbrook.com
2014-03-11 15:46:51 +00:00
Richard Brooksby
9d7b1ff29e
Improving comments in response to code review suggestions < https://info.ravenbrook.com/mail/2014/03/11/14-47-33/0/ >.
...
Copied from Perforce
Change: 184725
ServerID: perforce.ravenbrook.com
2014-03-11 15:46:51 +00:00
Richard Brooksby
16e0798806
Responding to code review < https://info.ravenbrook.com/mail/2014/03/07/22-40-36/0/ >.
...
Using TREE_ELT where appropriate.
Using AVERT consistently on Tree, but see job003691.
Copied from Perforce
Change: 184724
ServerID: perforce.ravenbrook.com
2014-03-11 15:46:51 +00:00
Richard Brooksby
1a37468bca
Fixing windows build.
...
Copied from Perforce
Change: 184721
ServerID: perforce.ravenbrook.com
2014-03-11 15:22:21 +00:00
Richard Brooksby
00420bfce5
Fixing freebsd build.
...
Copied from Perforce
Change: 184719
ServerID: perforce.ravenbrook.com
2014-03-11 14:46:47 +00:00
Gareth Rees
6adf936448
Fix bug in nailboardisresrange: must return false when nail found.
...
Extract common code for size computations.
More accurate size computation using offsetof.
Macros for NailboardNewNails and NailboardClearNewNails.
Since level shift is constant (for now), use constant instead of structure slot.
Unroll NailboardSet.
Move NailboardIsResClientRange to poolamc where it belongs.
Copied from Perforce
Change: 184697
ServerID: perforce.ravenbrook.com
2014-03-08 20:02:42 +00:00
Gareth Rees
ce677ed064
Turn nailboard test case back on (accidentally got turned off).
...
Check NailboardSet call as well as NailboardIsResRange.
Copied from Perforce
Change: 184696
ServerID: perforce.ravenbrook.com
2014-03-08 19:56:44 +00:00
Gareth Rees
784bc484ca
Poolfix is on the critical path, so use aver_critical rather than aver.
...
Copied from Perforce
Change: 184693
ServerID: perforce.ravenbrook.com
2014-03-08 10:23:09 +00:00
Gareth Rees
cf4d9b0596
Ensure that djbench and gcbench compile on freebsd:
...
Link fmtdy with gcbench.
RESERVE_ALLOC in djbench ignores the return values from mps_reserve and mps_commit.
Don't include alloca.h -- alloca is in stdlib.h.
Rename start, finish to begin, end to avoid "local variable shadows global" error from gcc.
Copied from Perforce
Change: 184691
ServerID: perforce.ravenbrook.com
2014-03-08 00:36:32 +00:00
Gareth Rees
d2b6956f6a
Add locbwcss and locusss to the test suite on os x, freebsd and linux.
...
Add const qualifier so that locbwcss and locusss compile without warnings.
Build djbench and gcbench on FreeBSD and Linux.
Don't include <alloca.h> -- alloca is in stdlib.h.
Copied from Perforce
Change: 184689
ServerID: perforce.ravenbrook.com
2014-03-08 00:24:04 +00:00
Gareth Rees
9e60432362
More detailed naiboard description.
...
Copied from Perforce
Change: 184684
ServerID: perforce.ravenbrook.com
2014-03-07 21:36:48 +00:00
Gareth Rees
19300bb4e5
Test nailboard alignment.
...
Copied from Perforce
Change: 184683
ServerID: perforce.ravenbrook.com
2014-03-07 21:36:12 +00:00
Gareth Rees
690ddfdde4
Delete .gdbinit: it hasn't been necessary to "handle sigbus nostop" on os x since the we started using mach exceptions (change 183002).
...
Copied from Perforce
Change: 184678
ServerID: perforce.ravenbrook.com
2014-03-07 19:02:05 +00:00
Gareth Rees
f23b54acb7
Catch-up merge from master sources.
...
Copied from Perforce
Change: 184676
ServerID: perforce.ravenbrook.com
2014-03-07 17:29:25 +00:00
Gareth Rees
f40425bef2
Ensure that the mps builds on windows by adding <sa> to mpmcommon.
...
Copied from Perforce
Change: 184675
ServerID: perforce.ravenbrook.com
2014-03-07 17:24:46 +00:00
Gareth Rees
0f2cc94e69
Build and run nailboardtest on unix.
...
Copied from Perforce
Change: 184673
ServerID: perforce.ravenbrook.com
2014-03-07 16:13:10 +00:00
Gareth Rees
9b36ac811d
Further clarify nailboard implementation and design.
...
Add links from implementation to design.
Copied from Perforce
Change: 184671
ServerID: perforce.ravenbrook.com
2014-03-07 15:30:37 +00:00
Richard Brooksby
4e28809e4a
Responding to code review. see < https://info.ravenbrook.com/mail/2014/03/04/12-02-27/0/ >.
...
Copied from Perforce
Change: 184669
ServerID: perforce.ravenbrook.com
2014-03-07 15:00:54 +00:00
Gareth Rees
95730b5096
Catch-up merge from master sources.
...
Copied from Perforce
Change: 184668
ServerID: perforce.ravenbrook.com
2014-03-07 14:59:57 +00:00
Gareth Rees
3ea1862901
Clearer implementation.
...
Copied from Perforce
Change: 184666
ServerID: perforce.ravenbrook.com
2014-03-07 14:06:09 +00:00
Gareth Rees
5fc26baf00
Simplify nailboard implementation.
...
Copied from Perforce
Change: 184663
ServerID: perforce.ravenbrook.com
2014-03-06 20:09:31 +00:00
Gareth Rees
c213b085e0
Fix the levels computation.
...
Copied from Perforce
Change: 184612
ServerID: perforce.ravenbrook.com
2014-02-28 19:31:33 +00:00
Richard Brooksby
d1473656ee
Resolving questions left behind in fixmes.
...
Copied from Perforce
Change: 184609
ServerID: perforce.ravenbrook.com
2014-02-28 14:42:44 +00:00
Richard Brooksby
a989f15b7f
Adding more unzoned arena test cases back, now that there’s a keyword to the arena.
...
Copied from Perforce
Change: 184608
ServerID: perforce.ravenbrook.com
2014-02-28 14:42:18 +00:00
Richard Brooksby
d8362f2cad
Merging branch/2014-02-22/splay-tune to pick up splay tree improvements.
...
Copied from Perforce
Change: 184606
ServerID: perforce.ravenbrook.com
2014-02-28 14:27:40 +00:00
Richard Brooksby
1956b0cee1
Restoring error path for arenaalloc.
...
Copied from Perforce
Change: 184604
ServerID: perforce.ravenbrook.com
2014-02-28 13:48:56 +00:00
Richard Brooksby
b15751c829
Removing redundant blacklisting event.
...
Copied from Perforce
Change: 184603
ServerID: perforce.ravenbrook.com
2014-02-28 13:46:51 +00:00
Richard Brooksby
fcd691aaa3
Adding unzoned arena tests back, now that there is a method of asking for them.
...
Copied from Perforce
Change: 184602
ServerID: perforce.ravenbrook.com
2014-02-28 13:46:36 +00:00
Richard Brooksby
53bdfaab23
More closely duplicating the allocation policy from the old vmarena, and documenting why.
...
Copied from Perforce
Change: 184601
ServerID: perforce.ravenbrook.com
2014-02-28 13:35:51 +00:00
Richard Brooksby
4eec2493b7
Adding a keyword to the arena to disable zoned allocation.
...
Copied from Perforce
Change: 184599
ServerID: perforce.ravenbrook.com
2014-02-28 13:20:06 +00:00
Richard Brooksby
a1a14a1683
Implementing allocation in the client arena class.
...
Copied from Perforce
Change: 184596
ServerID: perforce.ravenbrook.com
2014-02-28 11:23:59 +00:00
Richard Brooksby
0673536606
Fixing res/bool confusion found by “xc/debug/fbmtest 244032167”
...
Copied from Perforce
Change: 184595
ServerID: perforce.ravenbrook.com
2014-02-28 10:53:07 +00:00
Richard Brooksby
31b493236c
Reinstating exhaustive splay tree search, since a tree or node may intersect a requested zone set, and be larger than a requested size, but still not satisfy a request.
...
Copied from Perforce
Change: 184594
ServerID: perforce.ravenbrook.com
2014-02-28 10:52:45 +00:00
Richard Brooksby
887c6e3845
Tidying up interfaces to cbsinit and cbsfindinzones.
...
Documenting assumptions about CBS block allocation used by the arena.
Copied from Perforce
Change: 184593
ServerID: perforce.ravenbrook.com
2014-02-28 10:30:32 +00:00
Richard Brooksby
14620f8c24
Simplifying the interface to cbsfindinzones.
...
Speeding up CBSFindInZones a bit.
Copied from Perforce
Change: 184589
ServerID: perforce.ravenbrook.com
2014-02-28 01:25:18 +00:00
Richard Brooksby
1ef160e7b1
Reverting exhaustive search in splayfindfirst and splayfindlast since zoned cbs will use an accurate test on the cbs block zones property, and this code will never be exercised.
...
Copied from Perforce
Change: 184588
ServerID: perforce.ravenbrook.com
2014-02-28 00:47:42 +00:00
Richard Brooksby
ddfec2c708
Eliminating complex zonedcbs adt and reintroducing a cbs with zone summaries. removing the default “high” segment preference, that caused the cbs trees to unbalance, and isn’t required outside of ep. considerable reduction in code and speed up, now at parity with master on test xc/release/gcbench -x 1234 amc
...
Copied from Perforce
Change: 184587
ServerID: perforce.ravenbrook.com
2014-02-28 00:35:05 +00:00
Richard Brooksby
7a33207595
Adding some missing headers revealed by separate compilation.
...
Copied from Perforce
Change: 184584
ServerID: perforce.ravenbrook.com
2014-02-27 18:01:05 +00:00
Richard Brooksby
2d685bee13
Adding check for unexpected case of zone barging.
...
Copied from Perforce
Change: 184583
ServerID: perforce.ravenbrook.com
2014-02-27 17:50:44 +00:00
Richard Brooksby
dee2b3438b
Inserting small ranges into the zone cbss so that they can be reallocated quickly.
...
Copied from Perforce
Change: 184579
ServerID: perforce.ravenbrook.com
2014-02-27 17:01:29 +00:00
Richard Brooksby
6b17c88c69
Implementing splayfindlast to match splayfindfirst. oops.
...
Copied from Perforce
Change: 184578
ServerID: perforce.ravenbrook.com
2014-02-27 16:03:55 +00:00
Richard Brooksby
e6d1db24b6
Simplifying interface to high and low allocation in the zoned cbs.
...
Copied from Perforce
Change: 184576
ServerID: perforce.ravenbrook.com
2014-02-27 12:01:42 +00:00
Richard Brooksby
b160cf778a
Separating arena cbs allocator into abstract zonedcbs adt. the number of chunks seems to blow up.
...
Copied from Perforce
Change: 184575
ServerID: perforce.ravenbrook.com
2014-02-27 04:50:52 +00:00
Gareth Rees
90d9df5c00
New test program nailboardtest.
...
Copied from Perforce
Change: 184570
ServerID: perforce.ravenbrook.com
2014-02-26 22:41:22 +00:00
Richard Brooksby
3b3e01b10f
Searching the freecbs now respects the “high” preference, though not yet within blocks.
...
Copied from Perforce
Change: 184574
ServerID: perforce.ravenbrook.com
2014-02-26 19:29:05 +00:00
Richard Brooksby
6b16beb0c6
Implemented “high” preference allocation for zone stripes.
...
Copied from Perforce
Change: 184573
ServerID: perforce.ravenbrook.com
2014-02-26 18:18:20 +00:00
Richard Brooksby
dc83b10c0d
Fixing cbsfindfirstinzones to return a res, because it can fail when it can’t allocate a cbs block, unlike cbsfindfirst.
...
Fixing related corner case in arenaAllocFindInFreeCBS when it thought it couldn’t find a block when it was in fact running out of nodes. This was revealed by “gcbench --npass 1 --arena-size 1M --seed 945632066 --niter 1 amc”.
Fixing draft ArenaFreeCBSDelete after exercising it.
Copied from Perforce
Change: 184568
ServerID: perforce.ravenbrook.com
2014-02-26 17:40:39 +00:00
Richard Brooksby
c76ae6e629
Removing unused fields from vmarenastruct.
...
Copied from Perforce
Change: 184567
ServerID: perforce.ravenbrook.com
2014-02-26 17:37:16 +00:00
Richard Brooksby
4a1eb8bae3
Adding clarifying bracket.
...
Copied from Perforce
Change: 184566
ServerID: perforce.ravenbrook.com
2014-02-26 17:36:27 +00:00
Richard Brooksby
f215460eb1
Adding checking of the freecbs and zonecbss to arenacheck.
...
Copied from Perforce
Change: 184563
ServerID: perforce.ravenbrook.com
2014-02-26 14:25:01 +00:00