Richard Kistruck
d4fd999c67
Mps br/timing zcoll.c: (fix compiler warning for w3i3m9) vc9 warns that sscanf is unsafe; disable this warning for zcoll.c. see also job001934.
...
Copied from Perforce
Change: 167379
ServerID: perforce.ravenbrook.com
2009-02-16 14:57:54 +00:00
Richard Kistruck
3871ef4975
Mps br/timing testlib.c: (fix compiler warning) msvc thinks "local variable 'r' may be used without having been initialized"
...
Copied from Perforce
Change: 167378
ServerID: perforce.ravenbrook.com
2009-02-16 14:45:11 +00:00
Richard Kistruck
90bebb48c1
Mps br/timing zcoll: show gc timing, by printing mps_message_clock value (currently formatted for centiseconds, ie. clock() on unix)
...
Copied from Perforce
Change: 167351
ServerID: perforce.ravenbrook.com
2009-02-06 22:14:35 +00:00
Richard Kistruck
1d6d74650b
Mps br/timing notes: disassembly of gcc -o1 output showing ambiguous interior pointers.
...
Copied from Perforce
Change: 167350
ServerID: perforce.ravenbrook.com
2009-02-06 17:42:27 +00:00
Richard Kistruck
c96ca2c294
Mps br/timing zcoll.c: (comments only) briefly describe script commands
...
Copied from Perforce
Change: 167349
ServerID: perforce.ravenbrook.com
2009-02-06 17:38:34 +00:00
Richard Kistruck
32b4b6d7bb
mps br/timing poolamc.c: [temporary code] in order to allow ambig interior pointers to preserve objects in place, make amcnailgetmark() always return true. this works: ambig interior pointers are sufficent to preserve in place the object they point into.
...
Copied from Perforce
Change: 167343
ServerID: perforce.ravenbrook.com
2009-02-05 15:51:30 +00:00
Richard Kistruck
4d55c060c8
Mps br/timing poolamc.c: [back out previous broken code] revert to original poolamc.c
...
Copied from Perforce
Change: 167342
ServerID: perforce.ravenbrook.com
2009-02-05 15:48:58 +00:00
Richard Kistruck
7f02a94cbc
Mps br/timing poolamc.c: [broken code] attempt to never use nailboards, aiming to fall back to nailing whole seg, thereby allowing ambig interior pointers to presrve objects in place. does not work.
...
Copied from Perforce
Change: 167341
ServerID: perforce.ravenbrook.com
2009-02-05 15:47:48 +00:00
Richard Kistruck
f7ccd48794
Mps br/timing zcoll catalog client:
...
1. CatalogCheck(), which verifies the tree.
2. Don't set empty object slots to NULL -- make_dylan_vector() has already set them to a DYLAN_INT(0), which means dylan's fmt_scan ignores them.
3. fflush(stdout) more.
Copied from Perforce
Change: 167321
ServerID: perforce.ravenbrook.com
2009-02-04 17:40:54 +00:00
Richard Kistruck
866d6d4557
Mps br/timing zcoll.c: start to write the "catalog" example client, and find it already gives some non-obvious results.
...
Copied from Perforce
Change: 167227
ServerID: perforce.ravenbrook.com
2009-01-27 14:14:11 +00:00
Richard Kistruck
2f40abb992
Mps br/timing zcoll.c: move arenasize and rootspace into script;
...
showStatsAscii uses ascii-graphics to show collections
Copied from Perforce
Change: 167211
ServerID: perforce.ravenbrook.com
2009-01-23 17:31:51 +00:00
Richard Kistruck
dbd64e2be4
Mps br/timing zcoll.c: get() reports collection statistics
...
also (in zcoll's tiny script language) tidy up Make() command.
Copied from Perforce
Change: 167196
ServerID: perforce.ravenbrook.com
2009-01-21 16:29:40 +00:00
Richard Kistruck
b8ad68dee5
Mps br/timing zcoll.c: remove temporary rnd()-test code
...
Copied from Perforce
Change: 167193
ServerID: perforce.ravenbrook.com
2009-01-21 14:25:43 +00:00
Richard Kistruck
bd9a7bc50c
Mps br/timing testlib.c: polish comments and code (no functionality change)
...
Copied from Perforce
Change: 167192
ServerID: perforce.ravenbrook.com
2009-01-21 14:19:38 +00:00
Richard Kistruck
f41dc7fc22
Mps br/timing (fix warnings "... may be used uninitialized"):
...
trace.c, tract.c: initialise variable to NULL
Copied from Perforce
Change: 167191
ServerID: perforce.ravenbrook.com
2009-01-21 14:17:56 +00:00
Richard Kistruck
22fdca2d3a
Mps br/timing testlib.c: fix warning ("... may be used uninitialized")
...
Copied from Perforce
Change: 167188
ServerID: perforce.ravenbrook.com
2009-01-21 13:20:20 +00:00
Richard Kistruck
b3e30c49e6
Mps br/timing rnd():
...
Use a = 48271. Use fast implementation. Much improved verification by rnd_verify().
Copied from Perforce
Change: 167182
ServerID: perforce.ravenbrook.com
2009-01-20 18:23:53 +00:00
Richard Kistruck
6d281f71b5
Mps br.timing: testlib randomize() was wrong (simply discarding the first 0..32000 values is a throughly defective way to seed the generator). correct it to simply use timestamp (modulo m) as the initial seed, and then iterate 10 times.
...
rnd(): add notes, and create rnd_verify() to confirm implementation is correct.
Copied from Perforce
Change: 167181
ServerID: perforce.ravenbrook.com
2009-01-20 15:59:32 +00:00
Richard Kistruck
9f95ae41de
Mps br/timing zcoll.c: show count of objects made & kept.
...
Also (TEMPORARY) investigate poor seeding of rnd(). Aha --
it's a full-period generator. Therefore the current
randomize is a very poor way to seed it.
Copied from Perforce
Change: 167152
ServerID: perforce.ravenbrook.com
2009-01-13 16:30:27 +00:00
Richard Kistruck
ba719e96d5
Mps br/timing zcoll.c: (fix unused variable)
...
Copied from Perforce
Change: 167018
ServerID: perforce.ravenbrook.com
2008-12-22 17:33:05 +00:00
Richard Kistruck
d0349139d6
Mps br/timing zcoll.c: (new test) hack in the basics; build it
...
Copied from Perforce
Change: 167017
ServerID: perforce.ravenbrook.com
2008-12-22 17:31:14 +00:00
Richard Kistruck
06c2e99a20
Mps br/timing zmess.c: (clarity tweaks)
...
Copied from Perforce
Change: 167016
ServerID: perforce.ravenbrook.com
2008-12-22 17:30:49 +00:00
Richard Kistruck
2e5c4488c4
Mps br/timing zmess.c: copyright date
...
Copied from Perforce
Change: 167015
ServerID: perforce.ravenbrook.com
2008-12-22 16:51:55 +00:00
Richard Kistruck
745737ba31
Mps br/timing zcoll.c: (new test) create by integrating from zmess.c
...
Copied from Perforce
Change: 167014
ServerID: perforce.ravenbrook.com
2008-12-22 16:28:32 +00:00
Richard Kistruck
9287a84bc8
Mps br/timing traceanc.c review and polish:
...
.whybuf.nul: the last char in the array must be NUL (even if there is another NUL earlier in the buffer).
Message Delete functions set sig to invalid, and call MessageFinish.
TraceIdMessagesDestroy uses message Delete functions.
Copied from Perforce
Change: 167003
ServerID: perforce.ravenbrook.com
2008-12-22 14:09:37 +00:00
Richard Kistruck
0ca8d085dd
Mps br/timing: zmess.c subsumes and replaces fin1658a.c
...
Also improve comments in zmess.c.
Copied from Perforce
Change: 166994
ServerID: perforce.ravenbrook.com
2008-12-19 14:47:54 +00:00
Richard Kistruck
4a9aeda2e0
Mps br/timing: rename z001989a.c as zmess.c
...
Copied from Perforce
Change: 166993
ServerID: perforce.ravenbrook.com
2008-12-19 14:27:48 +00:00
Richard Kistruck
601e74637c
Mps br/timing: rename z001989a.c as zmessco.c
...
Copied from Perforce
Change: 166991
ServerID: perforce.ravenbrook.com
2008-12-19 14:08:14 +00:00
Richard Kistruck
a6caf88981
Mps br/timing traceanc.c: timca_remote: undo testing-only additions
...
to TraceIdMessagesCreate.
Copied from Perforce
Change: 166960
ServerID: perforce.ravenbrook.com
2008-12-17 17:27:01 +00:00
Richard Kistruck
3a6f6d10f2
Mps br/timing z001989a.c: timca_remote -- traceidmessagescreate alloc remote control
...
In low memory situations, ControlAlloc may be unable to allocate
memory for GC messages. This needs to work flawlessly, but is
hard to test. To simulate it for testing purposes, do macro-magic
in traceanc.c, before the definition of TraceIdMessagesCreate.
Test all designed behaviour of TraceIdMessagesCreate failing.
See <design/message-gc#lifecycle>.
Copied from Perforce
Change: 166959
ServerID: perforce.ravenbrook.com
2008-12-17 17:17:55 +00:00
Richard Kistruck
33b07a0011
Mps br/timing (revert previous local-only change @166956)
...
Copied from Perforce
Change: 166957
ServerID: perforce.ravenbrook.com
2008-12-16 18:01:18 +00:00
Richard Kistruck
aa8add5e4e
Mps br/timing (local only - must revert) hack trace.c so it does not
...
pre-allocate GC messages after the first trace, and verify that
everything still works, droppedMessages is incremented, and reported
as non-zero (in diagnostic varieties only) by global.c on
ArenaDestroy. Test passes.
Copied from Perforce
Change: 166956
ServerID: perforce.ravenbrook.com
2008-12-16 17:59:50 +00:00
Richard Kistruck
1c258e7ce8
Mps br/timing global.c: report dropped messages (currently in diagnostic varieties only)
...
Copied from Perforce
Change: 166955
ServerID: perforce.ravenbrook.com
2008-12-16 17:54:53 +00:00
Richard Kistruck
29573066e4
Mps br/timing (local only) diag.c: turn off tracestart and tracefindgrey
...
Copied from Perforce
Change: 166954
ServerID: perforce.ravenbrook.com
2008-12-16 17:53:46 +00:00
Richard Kistruck
898f4d872b
Mps br/timing z001989a.c: "!" means get but don't discarrd messages,
...
to check MPS copes okay. See .discard.
Also: improve comments.
Copied from Perforce
Change: 166953
ServerID: perforce.ravenbrook.com
2008-12-16 17:46:45 +00:00
Richard Kistruck
9d7293a9e2
Mps br/timing global.c: new diag "globalspreparetodestroy", reports if message queue not empty.
...
Copied from Perforce
Change: 166952
ServerID: perforce.ravenbrook.com
2008-12-16 16:20:16 +00:00
Richard Kistruck
593d96e65a
Mps br/timing traceanc.c: tracestartmessagedelete must controlfree,
...
NOT call traceStartMessageInit.
Copied from Perforce
Change: 166951
ServerID: perforce.ravenbrook.com
2008-12-16 16:14:17 +00:00
Richard Kistruck
8efd0b43b5
Mps br/diag arena.c: arenadestroy diag = controldescribe.
...
(p4 integ -f //info.ravenbrook.com/project/mps/branch/2008-03-11/auto_header/code/arena.chttps://github.com/Ravenbrook/mps/issues/3,https://github.com/Ravenbrook/mps/issues/5 arena.c)
Copied from Perforce
Change: 166950
ServerID: perforce.ravenbrook.com
2008-12-16 16:09:43 +00:00
Richard Kistruck
24bb28bfc1
Mps br/timing z001989a.c: oops, re-enable test of delayeed getting
...
of messages. Demonstrates fix for job001989.
Copied from Perforce
Change: 166919
ServerID: perforce.ravenbrook.com
2008-12-11 16:08:47 +00:00
Richard Kistruck
380ab1ec56
Mps br/timing traceidmessages: create them at mps_arena_create time,
...
re-create them immediately after a trace sends its last message.
Store them, one per TraceId, in ArenaStruct. Cope correctly if they
cannot be created (ControlAlloc fails). Destroy them correctly on
mps_arena_destroy. See job001989 and design/message-gc#lifecycle
(not yet written).
Copied from Perforce
Change: 166918
ServerID: perforce.ravenbrook.com
2008-12-11 16:06:14 +00:00
Richard Kistruck
788aac4a8f
mps br/timing traceanc: (tidying only) improve comments and variable
...
names.
Copied from Perforce
Change: 166915
ServerID: perforce.ravenbrook.com
2008-12-10 10:32:29 +00:00
Richard Kistruck
f8dfaf2b9a
Mps br/timing traceanc: trace.c needs tracestartwhytostring
...
(for .variety.di only, as it happens)
Copied from Perforce
Change: 166912
ServerID: perforce.ravenbrook.com
2008-12-09 17:18:09 +00:00
Richard Kistruck
beb476fd52
Mps br/timing: traceanc.c -- all this ancillary stuff was making
...
trace.c very cluttered. Put it here instead.
Copied from Perforce
Change: 166911
ServerID: perforce.ravenbrook.com
2008-12-09 16:55:22 +00:00
Richard Kistruck
6c15ecf521
Mps br/timing: delete w3{al,pp}mv.nmk -- they are long dead.
...
Copied from Perforce
Change: 166908
ServerID: perforce.ravenbrook.com
2008-12-09 16:06:02 +00:00
Richard Kistruck
944ed422a9
Mps br/timing: delete w3{al,pp}mv.nmk -- they are long dead.
...
Copied from Perforce
Change: 166907
ServerID: perforce.ravenbrook.com
2008-12-09 16:03:03 +00:00
Richard Kistruck
da4bb22476
Mps br/timing traceanc.c (create) ancillary trace-related code that
...
is not essential to Trace objects. (p4 integ'd from trace.c to
preserve ancestry).
Copied from Perforce
Change: 166900
ServerID: perforce.ravenbrook.com
2008-12-08 15:37:40 +00:00
Richard Kistruck
f2ce6b2993
Mps br/timing z001989a: report() checks found message types match
...
expected ones, in order. Temporarily ifdef-out failing job001989
tests.
Copied from Perforce
Change: 166884
ServerID: perforce.ravenbrook.com
2008-12-06 10:37:38 +00:00
Richard Kistruck
878011cfa4
Mps br/timing z001989a: get collection begin/end messages.
...
FAILS: thereby demonstrating defect job001989.
Copied from Perforce
Change: 166881
ServerID: perforce.ravenbrook.com
2008-12-05 22:14:56 +00:00
Richard Kistruck
4c3468bab8
Mps br/timing z001989a: make f drop ref for one object, lo or hi alternately.
...
Copied from Perforce
Change: 166880
ServerID: perforce.ravenbrook.com
2008-12-05 21:45:43 +00:00
Richard Kistruck
66b0d02a12
Mps br/timing: z001989a.c: each script should run with a new arena
...
and objects. So functions are now:
main
testscriptA
testscriptB
testscriptC
FAILS: intended failure of final script (to show that it does catch
failures).
Copied from Perforce
Change: 166877
ServerID: perforce.ravenbrook.com
2008-12-05 18:04:03 +00:00