Gareth Rees
43fc65b539
Oops: no need to set the spare commit limit here.
...
Copied from Perforce
Change: 185182
ServerID: perforce.ravenbrook.com
2014-04-02 16:02:09 +01:00
Gareth Rees
84cd92ab89
Improve clarity of product configuration so that names more explicitly indicate what they do:
...
* CONFIG_POLL_NONE (because the user-visible consequence is that polling is no longer supported; was CONFIG_PROTECTION_NONE).
* DISABLE_LOCKS (was THREAD_SINGLE).
* DISABLE_SHIELD (was THREAD_SINGLE && PROTECTION_NONE)
* DISABLE_REMEMBERED_SET (was PROTECTION_NONE)
When the shield is disabled, ArenaLeave asserts that there are no busy traces, and ArenaPoll is a no-op.
By having functions implemented using the corresponding macro, we can avoid duplicated code, and avoid testing DISABLE_SHIELD in global.c.
Remove all remaining references to MPS_PROD_EPCORE.
Copied from Perforce
Change: 185176
ServerID: perforce.ravenbrook.com
2014-04-02 15:48:57 +01:00
Gareth Rees
4873e7d49f
Merge nailboard size fix. enable zcoll for testci and testall.
...
Copied from Perforce
Change: 185060
ServerID: perforce.ravenbrook.com
2014-03-27 20:31:06 +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
443288ef61
Variable "base" no longer needed for passing to segnext, so remove it.
...
Copied from Perforce
Change: 185056
ServerID: perforce.ravenbrook.com
2014-03-27 17:47:15 +00:00
Gareth Rees
ad72ec24c8
Remove comment from rb "the thread_single and protection_none build configs aren't regularly tested, though they might well be useful for embedded custom targets. should test them." -- this configuration is now tested by "make test" on the linux and freebsd platforms.
...
Copied from Perforce
Change: 185054
ServerID: perforce.ravenbrook.com
2014-03-27 15:57:34 +00:00
Gareth Rees
a2edf546f8
Test case database now notes which test cases use threads.
...
New test suite "testansi" consists of test cases that run on the generic ("ANSI") platform.
New target "ansi" builds the MPS with the CONFIG_PF_ANSI CONFIG_THREAD_SINGLE and CONFIG_PROTECTION_NONE settings.
Build and test the "ansi" target as part of "make test" for the benefit of the buildbots (just Linux and FreeBSD for the moment).
Copied from Perforce
Change: 185050
ServerID: perforce.ravenbrook.com
2014-03-27 15:19:42 +00:00
Gareth Rees
a5d60601fd
Share test case database between windows and unix.
...
Add testci and testall targets on Windows.
Copied from Perforce
Change: 185047
ServerID: perforce.ravenbrook.com
2014-03-27 14:01:16 +00:00
Gareth Rees
764b64e17d
Merge branch/2014-01-15/nailboard into branch/2014-03-25/ansi to pick up nailboardtest windows fix.
...
Copied from Perforce
Change: 185043
ServerID: perforce.ravenbrook.com
2014-03-27 12:29:01 +00:00
Gareth Rees
28d9865637
Fix typo.
...
Copied from Perforce
Change: 185042
ServerID: perforce.ravenbrook.com
2014-03-27 12:22:19 +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
945f444158
Provide three different test targets for different purposes:
...
* testrun = "smoke test", fast enough to run before every commit
* testci = continuous integration tests, must be known good
* testall = all test cases, for ensuring quality of a release
Switch the main "make test" from testrun to testci.
Put test cases into "database" so that they can be selected.
Copied from Perforce
Change: 185039
ServerID: perforce.ravenbrook.com
2014-03-27 11:52:27 +00:00
Gareth Rees
a683ecf9f3
Add and document new configuration options config_thread_single and config_protection_none.
...
Copied from Perforce
Change: 185037
ServerID: perforce.ravenbrook.com
2014-03-26 23:19:04 +00:00
Gareth Rees
8e5ef07199
Refactor comm.gmk so that cflags is reserved for the user. this means that if you want to build using the ansi platform you can run "make -f xci6ll.gmk cflags=-dconfig_pf_ansi".
...
Don't include the testrun target in the "all" target.
Copied from Perforce
Change: 185034
ServerID: perforce.ravenbrook.com
2014-03-26 21:23:04 +00:00
Gareth Rees
4e7384be4b
Generic stack scanner implementation.
...
Copied from Perforce
Change: 185032
ServerID: perforce.ravenbrook.com
2014-03-26 17:09:49 +00:00
Gareth Rees
e84e299beb
Merge branch/2014-01-15/nailboard into branch/2014-03-25/ansi to pick up airtest, which tests the stack scanning code.
...
Copied from Perforce
Change: 185031
ServerID: perforce.ravenbrook.com
2014-03-26 17:09:16 +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
bfc3de38fa
Symbols starting config_ must be confined to config.h (see design.mps.config.impl.dep).
...
Copied from Perforce
Change: 185027
ServerID: perforce.ravenbrook.com
2014-03-26 16:25:14 +00:00
Gareth Rees
561b76b73c
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
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
3446e7381c
Vectors, not strings.
...
Copied from Perforce
Change: 184982
ServerID: perforce.ravenbrook.com
2014-03-24 20:33:15 +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
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