Richard Brooksby
a8afd8e6f4
Converting pools to use keyword arguments, mostly, and so far inconsistently, but at least it compiles.
...
Copied from Perforce
Change: 181635
ServerID: perforce.ravenbrook.com
2013-05-08 16:21:12 +01:00
Richard Brooksby
714bf2aff2
Basically working keyword arguments, though vmparam is unsatisfactory.
...
Copied from Perforce
Change: 181545
ServerID: perforce.ravenbrook.com
2013-05-03 17:20:35 +01:00
Richard Brooksby
402136905d
Removing half-finished code line. oops.
...
Copied from Perforce
Change: 181540
ServerID: perforce.ravenbrook.com
2013-05-02 17:59:58 +01:00
Richard Brooksby
098bf44a5e
First draft of keyword arguments. mainly checking in in order to try working with git fusion on this branch.
...
Copied from Perforce
Change: 181538
ServerID: perforce.ravenbrook.com
2013-05-02 17:55:07 +01:00
Gareth Rees
e4f6a8a7fb
Correct a couple of comments.
...
Copied from Perforce
Change: 181469
ServerID: perforce.ravenbrook.com
2013-04-26 20:50:21 +01:00
Gareth Rees
a55feaa7b6
Fix typo ("not" for "now").
...
Copied from Perforce
Change: 181451
ServerID: perforce.ravenbrook.com
2013-04-25 20:10:10 +01:00
Nick Barnes
f9beff6889
Fix job003454: when an amc pool is in the finish ramp mode, it should stay there until it can transition to collecting. also update the ramp part of design/poolamc.
...
Copied from Perforce
Change: 181325
ServerID: perforce.ravenbrook.com
2013-04-04 16:22:39 +01:00
Gareth Rees
f85720fcbd
Comment out all calls to mps_arena_commit_limit_set in test case amcsshe. (this test case formerly set the commit limit "in the hope of getting one dynamic collection", but this was unreliable: see job003440 for details.)
...
Copied from Perforce
Change: 181122
ServerID: perforce.ravenbrook.com
2013-03-12 15:15:57 +00:00
Gareth Rees
125193d708
Restore arena serial numbers.
...
Copied from Perforce
Change: 181121
ServerID: perforce.ravenbrook.com
2013-03-12 15:11:22 +00:00
Gareth Rees
8d6d8e7023
Remove "mps_alert_collection_set" from public interface and remove its implementation and test case. client programs should use the messages interface to find out what the mps is doing.
...
Copied from Perforce
Change: 181119
ServerID: perforce.ravenbrook.com
2013-03-12 14:33:27 +00:00
Richard Brooksby
784d47ff7f
Removing bogus test file that got into the sources somehow.
...
Copied from Perforce
Change: 181116
ServerID: perforce.ravenbrook.com
2013-03-12 11:01:14 +00:00
Gareth Rees
61f99ec46a
Add -*- makefile -*- to .gmk files so that syntax highlighting in emacs works out of the box.
...
Copied from Perforce
Change: 181101
ServerID: perforce.ravenbrook.com
2013-03-08 17:26:12 +00:00
Gareth Rees
f2f29d8c10
Make mps_arena_step suitable for purpose: arenastep now calls tracestartcollectall directly (not via arenastartcollect) so that it no longer unclamps the arena as a side effect.
...
Add test case: steptest now runs with the arena clamped, and checks that mps_arena_step does not unclamp it.
Copied from Perforce
Change: 181098
ServerID: perforce.ravenbrook.com
2013-03-08 15:13:16 +00:00
Gareth Rees
5500febc0d
Follow policy of not defining symbols from mpstd.h in the external interface, by removing the definition of mps_t_word from mps.h.
...
Copied from Perforce
Change: 181096
ServerID: perforce.ravenbrook.com
2013-03-08 14:03:10 +00:00
Gareth Rees
be50952a4f
Move global 'pool' to local so that we can rename argument 'pol' to 'pool'.
...
Copied from Perforce
Change: 181095
ServerID: perforce.ravenbrook.com
2013-03-08 12:41:41 +00:00
Gareth Rees
0609a2f2a2
Don't accidentally leave the arena in the clamped state after calling mps_arena_collect:
...
* In mpiscv, release the arena immediately after collecting.
* In zmess, clamp the arena immediately after creating it.
Copied from Perforce
Change: 181094
ServerID: perforce.ravenbrook.com
2013-03-08 12:23:44 +00:00
Gareth Rees
c602081e0a
Private symbols _mps_sac_s and _mps_sac_freelist_block_s now start with underscores, as per external interface policy.
...
Copied from Perforce
Change: 181092
ServerID: perforce.ravenbrook.com
2013-03-08 12:10:44 +00:00
Gareth Rees
1745c7ff40
Ensure that the last entry in the table is preserved, so that we don't get a false positive due to the local variable 'string' keeping this entry alive.
...
Copied from Perforce
Change: 181088
ServerID: perforce.ravenbrook.com
2013-03-08 11:36:38 +00:00
Gareth Rees
a8745f6701
Test suite runs on os x:
...
* New Xcode target "testrun" runs all the (runnable) test cases.
* Makefile provides separate targets test-make-build and test-xcode-build for running test suite on different platforms.
* configure selects the appropriate test target.
Copied from Perforce
Change: 181085
ServerID: perforce.ravenbrook.com
2013-03-08 10:17:08 +00:00
Gareth Rees
a14904e686
Comment out all calls to mps_arena_commit_limit_set in test case amcsshe. (this test case formerly set the commit limit "in the hope of getting one dynamic collection", but this was unreliable: see job003432 for details.)
...
Copied from Perforce
Change: 181081
ServerID: perforce.ravenbrook.com
2013-03-07 17:08:07 +00:00
Gareth Rees
f4a381d241
Fix to the mpsicv test case: get the arena's committed memory after creating the pool, so that the creation of the pool can't cause the committed memory to be bumped upwards.
...
Copied from Perforce
Change: 181080
ServerID: perforce.ravenbrook.com
2013-03-07 16:45:48 +00:00
Gareth Rees
56e6249e4c
Fix mutatorfaultcontextsp on lii3* and lii6*.
...
Copied from Perforce
Change: 181078
ServerID: perforce.ravenbrook.com
2013-03-07 15:31:40 +00:00
Gareth Rees
69243b3730
The amcssth test case now registers its threads' stacks as roots with the mps.
...
Copied from Perforce
Change: 181076
ServerID: perforce.ravenbrook.com
2013-03-07 14:53:31 +00:00
Gareth Rees
d5f4cb3be4
Build amcssth test case on os x (xci6ll).
...
Copied from Perforce
Change: 181074
ServerID: perforce.ravenbrook.com
2013-03-07 14:33:32 +00:00
Gareth Rees
13f6e2b7b9
Add testlib_unused(argc) where necessary, so that test cases build on xci6ll.
...
Copied from Perforce
Change: 181073
ServerID: perforce.ravenbrook.com
2013-03-07 14:32:40 +00:00
Gareth Rees
524eaeb4b4
Make amcssth test case runnable on platforms that use gnumake.
...
Copied from Perforce
Change: 181072
ServerID: perforce.ravenbrook.com
2013-03-07 14:03:00 +00:00
Gareth Rees
296ac3bccf
Improve the usability of the test suite:
...
1. "make test" now reports the name of the test case before running it, so that when you look back through the test output you can see which test case failed.
2. "make test" now collects the standard output from all the tests to a log file in /tmp, so that this does not clutter the user's terminal, and so that nothing is lost if the output exceeds the terminal's scrollback.
3. Each test case now prints a success message ("Conclusion: Failed to find any defects.") to standard output (not standard error) so that these messages do not clutter up the terminal when running "make test".
4. Each test case now uses its result code (not the printed message) to indicate whether it succeeded or failed.
5. More of the diagnostic messages from the test cases now start by printing argv[0] so that it is easier to tell which test case was running.
Copied from Perforce
Change: 181071
ServerID: perforce.ravenbrook.com
2013-03-07 13:13:32 +00:00
Richard Brooksby
383b590b40
Minor tweaks to allow amcssth test to build under lii3gc at least.
...
Copied from Perforce
Change: 180963
ServerID: perforce.ravenbrook.com
2013-02-20 13:35:23 +00:00
Richard Brooksby
5b557ecfb6
Deprecating the mps trampoline by using vectored exception handling on windows.
...
Copied from Perforce
Change: 180961
ServerID: perforce.ravenbrook.com
2013-02-20 12:11:40 +00:00
Richard Brooksby
4f60f9698c
Merging spelling corrections contributed by bruce mitchener.
...
See <1c80ccb634 >.
Copied from Perforce
Change: 180956
ServerID: perforce.ravenbrook.com
2013-02-18 15:46:39 +00:00
Richard Brooksby
85af2e8217
Integrating branch/2012-10-09/user-guide back to master.
...
Copied from Perforce
Change: 180943
ServerID: perforce.ravenbrook.com
2013-02-08 16:17:34 +00:00
Gareth Rees
d695d3cc2c
Undo changes 180370 and 180390 (which supported interior pointers by checking all nails in an object), as these changes are not suitable for release. work around job003359 for the example scheme interpreter by setting the compilation option -fno-inline-functions.
...
Copied from Perforce
Change: 180941
ServerID: perforce.ravenbrook.com
2013-02-08 15:36:50 +00:00
Gareth Rees
c952b0e319
Merge 64-bit xcode support from measurement branch.
...
Copied from Perforce
Change: 180937
ServerID: perforce.ravenbrook.com
2013-02-08 14:52:53 +00:00
Gareth Rees
b16ea3b315
Print event code in uppercase hexadecimal for consistency.
...
Copied from Perforce
Change: 180936
ServerID: perforce.ravenbrook.com
2013-02-08 14:52:05 +00:00
Gareth Rees
a4a18a1a27
More build/install improvements:
...
1. Name the command-line tools with the "mps" prefix throughout, for consistency between build and installation.
2. Don't build "mpseventsql.exe" by default on Windows.
3. Instructions for building mpseventsql on the supported platforms.
Copied from Perforce
Change: 180913
ServerID: perforce.ravenbrook.com
2013-02-05 15:43:41 +00:00
Gareth Rees
30b0851159
Build extra_targets. in particular, build eventsql only if configured to do so.
...
Copied from Perforce
Change: 180912
ServerID: perforce.ravenbrook.com
2013-02-05 15:03:47 +00:00
Gareth Rees
e375f6c353
Improvements to the mps build/installation process:
...
1. Build eventtxt on Mac OS X (add "eventtxt" as dependency for "all" target).
2. In configure, check for the existence of the header "sqlite3.h" and set EXTRA_TARGETS accordingly.
3. In top-level Makefile, install all targets in EXTRA_TARGETS.
Copied from Perforce
Change: 180907
ServerID: perforce.ravenbrook.com
2013-02-05 13:34:42 +00:00
Gareth Rees
5c9edb0a0e
Avoid error "variable 'res' set but not used" from gcc.
...
Copied from Perforce
Change: 180905
ServerID: perforce.ravenbrook.com
2013-02-04 17:32:13 +00:00
Gareth Rees
5037db4cd1
Merge changes 180885 and 180887 from branch/2012-10-10/measurement to branch/2012-10-09/user-guide.
...
Copied from Perforce
Change: 180904
ServerID: perforce.ravenbrook.com
2013-02-04 16:44:34 +00:00
Gareth Rees
4e61a0e564
Don't #error if defined(mps_build_ll) and __has_builtin(__builtin_readcyclecounter). put a todo here instead, referencing job003411.
...
Copied from Perforce
Change: 180903
ServerID: perforce.ravenbrook.com
2013-02-04 16:40:28 +00:00
Nick Barnes
6bddce8382
Get eventcnv/txt/sql working on fri3gc.
...
Copied from Perforce
Change: 180887
ServerID: perforce.ravenbrook.com
2013-01-31 14:54:35 +00:00
Nick Barnes
2d9c5608d3
Port eventsql and friends to windows 7.
...
Copied from Perforce
Change: 180885
ServerID: perforce.ravenbrook.com
2013-01-30 16:06:59 +00:00
Gareth Rees
eb8c674a1c
Integrate changes from branch/2012-10-10/measurement.
...
Copied from Perforce
Change: 180506
ServerID: perforce.ravenbrook.com
2012-11-20 10:50:12 +00:00
Gareth Rees
bfb81e3e9c
New type mps_label_t for telemetry labels.
...
Deprecate "candy machine" interface to telemetry control.
Implement and document straightforward get/set/reset interface.
Put a TODO referencing job003387 and job003388.
Copied from Perforce
Change: 180495
ServerID: perforce.ravenbrook.com
2012-11-16 16:42:41 +00:00
Gareth Rees
eb26a4acf9
New file "mpscmv2.h" just #include "mpscmvt.h", for backwards compatibility.
...
Copied from Perforce
Change: 180490
ServerID: perforce.ravenbrook.com
2012-11-16 14:48:53 +00:00
Gareth Rees
1c0af37416
Rename "mpscmv2.h" to "mpscmvt.h" for consistency.
...
Copied from Perforce
Change: 180489
ServerID: perforce.ravenbrook.com
2012-11-16 14:48:14 +00:00
Nick Barnes
3dd02c563b
Exit(exit_success) after usage message.
...
Copied from Perforce
Change: 180484
ServerID: perforce.ravenbrook.com
2012-11-16 10:22:29 +00:00
Nick Barnes
6d89b1b364
Somehow i introduced an uninitialized variable bug into eventflush(). oops.
...
Copied from Perforce
Change: 180482
ServerID: perforce.ravenbrook.com
2012-11-15 22:07:28 +00:00
Nick Barnes
991de7b0dd
Remove assertion which requires a higher-resolution clock() than freebsd has. document an alternative mps_clock() implementation using getrusage().
...
Copied from Perforce
Change: 180481
ServerID: perforce.ravenbrook.com
2012-11-15 22:06:49 +00:00
Nick Barnes
dfa8795389
Correct comment regarding mps_clocks_per_sec().
...
Copied from Perforce
Change: 180480
ServerID: perforce.ravenbrook.com
2012-11-15 19:30:47 +00:00