1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-24 07:41:54 -07:00
Commit graph

433 commits

Author SHA1 Message Date
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
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
Richard Kistruck
26e1672a0f Mps br/timing: new test z001989a.c, for job001989: mps _gc_start messages may cause assert or infinite loop
Add it to makefiles.
Make a start on test file:
  main
  main2
  test
  testscript
So far, only counts messages, does not get _gc or _gs_start, does not 
yet test finalization messages.  But works, so useful checkpoint.

Copied from Perforce
 Change: 166876
 ServerID: perforce.ravenbrook.com
2008-12-05 17:07:26 +00:00
Richard Kistruck
8dfaa4f1ff Mps br/timing: new test z001989a.c, for job001989: mps _gc_start messages may cause assert or infinite loop
Copied from Perforce
 Change: 166875
 ServerID: perforce.ravenbrook.com
2008-12-05 14:54:16 +00:00
Richard Kistruck
93413bb5b4 Mps br/timing: clear up mistakes in fin1658a.c
use DYLAN_* and make_dylan_vector facilities from fmtdytst
remove exact root p -- illegal reference to an incomplete object
use stack scanning instead
rename root as myroot to avoid confusion with mps root objects

Copied from Perforce
 Change: 166864
 ServerID: perforce.ravenbrook.com
2008-12-04 16:24:57 +00:00
Richard Kistruck
90545f655d Mps br/timing: hack finaltest.c, to show gcstart bug job001989
Copied from Perforce
 Change: 166855
 ServerID: perforce.ravenbrook.com
2008-12-02 15:03:45 +00:00
Richard Kistruck
c7dca62033 Mps br/timing: (cosmetic):
message.c: rename MessageClocked() as MessageIsClocked()
check.h: better name in future improvement comments

Copied from Perforce
 Change: 166801
 ServerID: perforce.ravenbrook.com
2008-11-24 16:53:12 +00:00
Richard Kistruck
c72217c9f9 Mps br/timing: move field "messagetype type" out of messagestruct
and into MessageClassStruct.

Copied from Perforce
 Change: 166795
 ServerID: perforce.ravenbrook.com
2008-11-24 15:44:27 +00:00
Richard Kistruck
601329ccc3 Mps br/timing: exp-166704
Copied from Perforce
 Change: 166704
 ServerID: perforce.ravenbrook.com
2008-11-12 17:00:11 +00:00
Richard Kistruck
cd17a5f411 Mps br/timing: mps_alert_collection_set() -- client sets a callback
function; MPS calls it synchronously on collection start/stop 
(immediately after posting start/stop message).  The callback 
receives two ints: alertcode (start|stop; see mps.h), and whycode 
(trace->why).  Note: callback is also called for heap walk 
start/stop.
amcss.c: show start/stop alerts.

Copied from Perforce
 Change: 166703
 ServerID: perforce.ravenbrook.com
2008-11-12 15:07:04 +00:00
Richard Kistruck
78d333082d Mps br/timing: messageclocked(), used in messagecheck and to prevent
numerous messages (namely: finalization messages) being timestamped.

Copied from Perforce
 Change: 166702
 ServerID: perforce.ravenbrook.com
2008-11-12 10:02:52 +00:00
Richard Kistruck
234b91ec5e Mps br/timing: new clocknow() wrapper for mps_clock(), clockspersec();
use Clock in arena step (not Word).

Copied from Perforce
 Change: 166701
 ServerID: perforce.ravenbrook.com
2008-11-12 09:26:48 +00:00
Richard Kistruck
2b4cf6ca29 Mps br/timing: new type "clock", internal equivalent of mps_clock_t.
Used for a field in messages.  (More uses to follow).

Copied from Perforce
 Change: 166697
 ServerID: perforce.ravenbrook.com
2008-11-11 16:57:30 +00:00
Richard Kistruck
ea707da154 Mps br/timing: mpsi_check(): check that external and internal messsage types match.
Copied from Perforce
 Change: 166696
 ServerID: perforce.ravenbrook.com
2008-11-11 16:22:26 +00:00
Richard Kistruck
0619697451 Mps br/timing: finalcv.c: verify that message clock is 0 (unset)
for finalization messages.

Copied from Perforce
 Change: 166695
 ServerID: perforce.ravenbrook.com
2008-11-11 15:28:28 +00:00
Richard Kistruck
417ed5993d Mps br/timing: do not set postedclock for finalization msgs.
Copied from Perforce
 Change: 166690
 ServerID: perforce.ravenbrook.com
2008-11-11 10:39:53 +00:00
Richard Kistruck
abb8654f3b Mps br/timing: amcss output changes:
- Keep counts of both collection start messages and collection end 
  messages.  Upon receipt of these messages, format the collection 
  start/end reports as 'brackets' (makes it easier to see whether 
  allocation continues during the collection or not).
- If mps_collections has changed, report() messages before doing 
  anything else.
- (source code clarity) Guess that the naked "4" in the 
  mps_arena_has_addr test means "hitsWanted", and label it.

Copied from Perforce
 Change: 166689
 ServerID: perforce.ravenbrook.com
2008-11-11 10:31:48 +00:00
Richard Kistruck
ac8737958b Mps br/timing:
message.c: maintain postedClock field, set it with mps_clock() at post time;
  amcss.c: call and display mps_message_clock() on _gc_start & _gc messages.

Copied from Perforce
 Change: 166677
 ServerID: perforce.ravenbrook.com
2008-11-07 16:11:37 +00:00
Richard Kistruck
a74aa28b4f Mps br/timing: (cosmetic) re-format report()'s switch on message type
to comply with design/cstyle.

Copied from Perforce
 Change: 166676
 ServerID: perforce.ravenbrook.com
2008-11-07 15:22:24 +00:00
Richard Kistruck
bac3560c2e mps br/timing: tabs in header files. (p4 diff -db -- confirms whitespace changes only).
Copied from Perforce
 Change: 166674
 ServerID: perforce.ravenbrook.com
2008-11-07 13:58:56 +00:00
Richard Kistruck
9935ca3ecd mps br/timing: tabs in source files. (p4 diff -db -- confirms whitespace changes only).
Copied from Perforce
 Change: 166673
 ServerID: perforce.ravenbrook.com
2008-11-07 13:56:12 +00:00
Richard Kistruck
98628157c1 Mps br/timing: tabs in test source files. (p4 diff -db -- confirms whitespace changes only).
Copied from Perforce
 Change: 166671
 ServerID: perforce.ravenbrook.com
2008-11-07 13:45:50 +00:00
Richard Kistruck
1be911f2ab Mps br/timing: (tabs) amcss.c
Copied from Perforce
 Change: 166670
 ServerID: perforce.ravenbrook.com
2008-11-07 13:37:23 +00:00
Richard Kistruck
5b0e9d7df9 Mps br/timing: message.c: (comment only) remove wrong copy-pasted comment
Copied from Perforce
 Change: 166669
 ServerID: perforce.ravenbrook.com
2008-11-07 13:17:35 +00:00
Richard Kistruck
63d30f9160 Mps br/timing: hack in mps_clock_t
(Should go via new Clock type in mpmtypes, mpsi_check(), etc).

Copied from Perforce
 Change: 166591
 ServerID: perforce.ravenbrook.com
2008-10-31 17:14:37 +00:00
Richard Kistruck
49d7318def Mps br/timing: (re-order file contents) arrange message functions
into a consistent order: 
 - internal (MPM) interface -- functions for message originator;
 - delivery (client) interface -- functions for recipient;
 - message methods.

Copied from Perforce
 Change: 166589
 ServerID: perforce.ravenbrook.com
2008-10-31 12:23:24 +00:00
Richard Kistruck
0403742d55 Mps br/timing: (*sigh*) have to back out everything (mpslib.h and
mpmst.h) to check it still builds, having rearranged
message functions into a consistent order.

Copied from Perforce
 Change: 166588
 ServerID: perforce.ravenbrook.com
2008-10-31 12:18:44 +00:00
Richard Kistruck
cb1a2bf60a Mps br/timing: back out mps.h too: i want to rearrange
message functions into a consistent order first

Copied from Perforce
 Change: 166587
 ServerID: perforce.ravenbrook.com
2008-10-31 11:52:44 +00:00
Richard Kistruck
c67ab90237 mps br/timing: back out broken message.c & mpsi.c
Copied from Perforce
 Change: 166586
 ServerID: perforce.ravenbrook.com
2008-10-31 10:16:57 +00:00
Richard Kistruck
d1a3bc7f29 Mps br/timing: (broken) snapshot; i want to back these out and rearrange
functions into a consistent order first

Copied from Perforce
 Change: 166585
 ServerID: perforce.ravenbrook.com
2008-10-31 10:10:19 +00:00
Richard Kistruck
2fb8daa6ca Mps master: (integ from br/vc9)
__New w3i3m9 clone-platform__
(see job001944)
w3i3m9.nmk (from w3i3mv.nmk) -- makefile
w3vc9.bat (from w3build.bat) -- Configura release
commpre9.nmk (from commpre.nmk) -- VC9 compiler	and linker opts

__use CONFIG_PF_* to check compiler__
(see job001945)
mpstd.h:
- fix broken behaviour if CONFIG_PF_* is set (result depends on
order of the various platform elifs!); change it to always use
platform detection by looking at preprocessor symbols, and
then (if CONFIG_PF_STRING *and* CONFIG_PF_* are set) check
that CONFIG and detection match;
- write design notes about interaction of CONFIG_PF_* and
platform detection.
xcppgc.gmk: define both CONFIG_PF_STRING and CONFIG_PF_*.
w3i3m[v9].nmk: define both CONFIG_PF_STRING and CONFIG_PF_*.

Copied from Perforce
 Change: 166536
 ServerID: perforce.ravenbrook.com
2008-10-23 15:34:11 +01:00
Richard Kistruck
4c5e2167f7 Mps br/vc9: mpstd.h: (for all remaining platforms)
- fix broken behaviour if CONFIG_PF_* is set (result depends on 
  order of the various platform elifs!); change it to always use 
  platform detection by looking at preprocessor symbols, and 
  then (if CONFIG_PF_STRING *and* CONFIG_PF_* are set) check 
  that CONFIG and detection match;
xcppgc.gmk: define both CONFIG_PF_STRING and CONFIG_PF_*.

Copied from Perforce
 Change: 166513
 ServerID: perforce.ravenbrook.com
2008-10-21 18:32:26 +01:00
Richard Kistruck
0300ffec3c Mps br/vc9: mpstd.h:
- fix broken behaviour if CONFIG_PF_* is set (result depends on 
    order of the various platform elifs!); change it to always use 
    platform detection by looking at preprocessor symbols, and 
    then (if CONFIG_PF_STRING *and* CONFIG_PF_* are set) check 
    that CONFIG and detection match;
  - write design notes about interaction of CONFIG_PF_* and 
    platform detection.
w3i3m[v9].nmk: define both CONFIG_PF_STRING and CONFIG_PF_*.

Copied from Perforce
 Change: 166512
 ServerID: perforce.ravenbrook.com
2008-10-21 17:44:17 +01:00
Richard Kistruck
f6d0d07c66 Mps br/vc9: new w3i3m9 clone-platform:
- w3i3m9.nmk: use commpre9.nmk (not commpre.nmk), for VC9 compiler
  and linker options;
- w3i3m[v9].nmk: declare CONFIG_PF_...
- mpstd.h: if CONFIG_PF_... is declared, check that the correct 
  compiler really is in use.

Copied from Perforce
 Change: 166505
 ServerID: perforce.ravenbrook.com
2008-10-20 17:31:57 +01:00
Richard Kistruck
258cb4fb57 Mps br/vc9: new w3i3m9 clone-platform:
Regular changes w3i3mv ->w3i3m9

Copied from Perforce
 Change: 166504
 ServerID: perforce.ravenbrook.com
2008-10-20 16:51:50 +01:00
Richard Kistruck
e814ccfa1e Mps br/vc9: new w3i3m9 clone-platform (not a full platform)
Clone w3i3mv.nmk -> w3i3m9
Clone w3build.bat -> w3vc9.bat

Copied from Perforce
 Change: 166500
 ServerID: perforce.ravenbrook.com
2008-10-20 16:24:20 +01:00
Richard Kistruck
24c8c1a882 Mps br/vc9: under ifdef mps_builder_mv, disable warning 4996 where
necessary for VC9 builds.

Copied from Perforce
 Change: 166497
 ServerID: perforce.ravenbrook.com
2008-10-20 15:12:15 +01:00
Richard Kistruck
1117cb7acf Mps br/vc9: exp-166419
Copied from Perforce
 Change: 166419
 ServerID: perforce.ravenbrook.com
2008-10-07 17:49:18 +01:00
Richard Kistruck
0414e16c67 Mps br/vc9: exp-166150
Copied from Perforce
 Change: 166150
 ServerID: perforce.ravenbrook.com
2008-09-10 19:44:02 +01:00
Richard Kistruck
5fa63d65cd Mps br/vc9: commposn.nmk: add /n
Copied from Perforce
 Change: 166148
 ServerID: perforce.ravenbrook.com
2008-09-10 19:26:19 +01:00
Richard Kistruck
f092fe40bc Mps br/vc9: commposn.nmk is clone of commpost.nmk with /n to nmake; use it to overwrite commpost.nmk to see complier options (etc) when doing w3build.bat
Copied from Perforce
 Change: 166147
 ServerID: perforce.ravenbrook.com
2008-09-10 19:25:26 +01:00
Richard Kistruck
4f7511cc14 Mps br/vc9: har har, delete w3build9.bat and w3i3mv9.nmk: they are not going to work.
Copied from Perforce
 Change: 166146
 ServerID: perforce.ravenbrook.com
2008-09-10 19:22:00 +01:00
Richard Kistruck
3e137735f5 Mps br/vc9: a clone of w3i3mv.nmk for using vc9 settings, as found in commpre9.nmk
Copied from Perforce
 Change: 166144
 ServerID: perforce.ravenbrook.com
2008-09-10 18:51:17 +01:00
Richard Kistruck
287cd4a205 Mps br/vc9: undo #pragma warning (4996) in mpslib.h and mpswin.h; testlib.c is where it is needed
Copied from Perforce
 Change: 166143
 ServerID: perforce.ravenbrook.com
2008-09-10 18:50:13 +01:00
Richard Kistruck
2055d068d9 Mps br/vc9: undo damage to w3i3mv.nmk (!include works fine)
Copied from Perforce
 Change: 166142
 ServerID: perforce.ravenbrook.com
2008-09-10 18:48:54 +01:00