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

81 commits

Author SHA1 Message Date
David Jones
1243fde843 Mps: adding uses of diag_decl so that variety=hi builds on os x.
Copied from Perforce
 Change: 163257
 ServerID: perforce.ravenbrook.com
2007-09-19 11:12:21 +01:00
Richard Kistruck
c66497fa7b Mps br/diagtag: whether a rule matches tag and para is constant for
the whole of a given diag, so memoize it (instead of repeating the 
match for every line of the diag).
locus.c: new diag from ChainCondemnAuto.
trace.c: tidy up TraceStart diag, give traceFindGrey diag a tag.

Copied from Perforce
 Change: 163077
 ServerID: perforce.ravenbrook.com
2007-08-09 16:41:59 +01:00
Richard Kistruck
a806433ed2 Mps br/diagtag: oops! back out accidental checkin of trace.c with
test code in.

Copied from Perforce
 Change: 163071
 ServerID: perforce.ravenbrook.com
2007-08-09 13:45:26 +01:00
Richard Kistruck
131dba802a Mps br/diagtag: diag.c: stringequal(), used to check tags, and
report helpfully if poor programmer forgot to end a tag.
FilterOutput: really filters now, but only on Tag.

Copied from Perforce
 Change: 163070
 ServerID: perforce.ravenbrook.com
2007-08-09 13:40:48 +01:00
Richard Kistruck
88b3431fa1 Mps br/diagtag:
diag.c: support tagging of diagnostics, and avoid having to 
  say DIAG_STREAM every time, with new macros:
    DIAG_SINGLEF, DIAG_FIRSTF, DIAG_MOREF, DIAG_END.
mpm.c: new WriteF_firstformat_v required by DIAG_MOREF.

Copied from Perforce
 Change: 163059
 ServerID: perforce.ravenbrook.com
2007-08-07 19:09:43 +01:00
David Jones
2eb761d632 Mps: adding gendesc indexes back in. and moving some static
function

Copied from Perforce
 Change: 162969
 ServerID: perforce.ravenbrook.com
2007-07-20 18:43:07 +01:00
Richard Kistruck
66cd90a801 Mps br/gcdiag: trace.c tracestart: separate tracestartgendesc_diag
function, and use it to show &arena->topGen.

Copied from Perforce
 Change: 162967
 ServerID: perforce.ravenbrook.com
2007-07-20 18:30:06 +01:00
Richard Kistruck
5dff24fb0f Mps br/gcdiag: trace.c tracestart: diag arenadescribe, and
whiteset for this trace.

Copied from Perforce
 Change: 162965
 ServerID: perforce.ravenbrook.com
2007-07-20 17:50:16 +01:00
Richard Kistruck
d50f668fb3 Mps br/gcdiag: split tracestartwhytostring into 2 parts (tostring
and ToTextBuffer), and fix DIAG in TraceStart to use ToString.  
(Previous hack of using the start-message's buffer only works if 
the client has enabled start messages).

Copied from Perforce
 Change: 162964
 ServerID: perforce.ravenbrook.com
2007-07-20 17:30:38 +01:00
David Jones
b747fa3684 Mps: zoneset added to diag.
Copied from Perforce
 Change: 162961
 ServerID: perforce.ravenbrook.com
2007-07-20 13:10:00 +01:00
David Jones
e6099c5e9c Mps: int -> index
Copied from Perforce
 Change: 162958
 ServerID: perforce.ravenbrook.com
2007-07-20 11:51:35 +01:00
David Jones
18070fbf2c Mps: tracestart diag, added poolname and gendesc index.
Copied from Perforce
 Change: 162957
 ServerID: perforce.ravenbrook.com
2007-07-20 11:21:05 +01:00
David Jones
3eefbdd270 Mps: why code in diagnostic, "correct" newsize diagnostics.
Copied from Perforce
 Change: 162956
 ServerID: perforce.ravenbrook.com
2007-07-20 11:09:49 +01:00
David Jones
3684875a0e Mps: poolgen diags at tracestart.
Copied from Perforce
 Change: 162955
 ServerID: perforce.ravenbrook.com
2007-07-20 10:20:44 +01:00
David Jones
1a86da82cd Mps: poolgens emitted in diags at tracestart.
Copied from Perforce
 Change: 162954
 ServerID: perforce.ravenbrook.com
2007-07-20 10:02:02 +01:00
David Jones
abaf0b63da Mps: trace.c formatting changes.
Copied from Perforce
 Change: 162951
 ServerID: perforce.ravenbrook.com
2007-07-19 17:56:04 +01:00
Richard Kistruck
3877fc3762 Mps master: trace and poolabs: (comment only) clarify that
PoolTrivGrey knows that a white seg is an all-white seg, and 
therefore needs no greying.

Copied from Perforce
 Change: 162946
 ServerID: perforce.ravenbrook.com
2007-07-19 16:50:21 +01:00
Richard Kistruck
dd5567680c Mps master: (fix w3i3mv build) wrap diag-only function declarations
(in trace.c) with DIAG_DECL() (from mpm.h).

Copied from Perforce
 Change: 162944
 ServerID: perforce.ravenbrook.com
2007-07-19 16:25:59 +01:00
Richard Kistruck
844b22f67c Mps master: diag_with_stream_and_writef.
trace.c: traceFindGrey_diag: wrap calls in DIAG(), prevent report
overflow, reduce report array to 20 chars, and use WriteF.

Copied from Perforce
 Change: 162937
 ServerID: perforce.ravenbrook.com
2007-07-19 14:38:57 +01:00
Richard Kistruck
1e4221c12f Mps master: trace.c: (whitespace only) remove tabs, fix style of a comment.
Copied from Perforce
 Change: 162934
 ServerID: perforce.ravenbrook.com
2007-07-18 18:22:10 +01:00
Richard Kistruck
7705dc18a0 mps br/diag: destructive integration:
Integrate trace.chttps://github.com/Ravenbrook/mps/issues/2,https://github.com/Ravenbrook/mps/issues/8 and mpmst.hhttps://github.com/Ravenbrook/mps/issues/2,https://github.com/Ravenbrook/mps/issues/3 from br/band.
(Removes all previous changes to trace.c in br/diag)
(Consequent change to TraceStart() fn-type in mpm.h)
(Consequent re-introduction of tabs in trace.c)
Then further:
Add in traceFindGrey_diag(), from trace.chttps://github.com/Ravenbrook/mps/issues/15 in br/diag,
to give output showing sequence of seg-ranks returned by 
traceFindGrey.

Copied from Perforce
 Change: 162758
 ServerID: perforce.ravenbrook.com
2007-07-04 15:17:59 +01:00
David Jones
21484f6da2 Mps: more checking.
Copied from Perforce
 Change: 162742
 ServerID: perforce.ravenbrook.com
2007-07-03 15:44:24 +01:00
David Jones
7908d6aa57 Mps: tracefindgrey checks as per its comment.
Copied from Perforce
 Change: 162736
 ServerID: perforce.ravenbrook.com
2007-07-03 15:01:48 +01:00
David Jones
51bd477f2e Mps: comments on what checks we make in tracefindgrey. no
checks yet.

Copied from Perforce
 Change: 162734
 ServerID: perforce.ravenbrook.com
2007-07-03 14:32:52 +01:00
David Jones
7773d68852 Mps: tracebandincrement renamed to tracebandadvance.
Copied from Perforce
 Change: 162732
 ServerID: perforce.ravenbrook.com
2007-07-03 14:00:20 +01:00
David Jones
918820829c Mps: implements better band tracing.
Copied from Perforce
 Change: 162718
 ServerID: perforce.ravenbrook.com
2007-07-02 16:10:48 +01:00
David Jones
7fea55b7c8 Mps: added band field to tracestruct. unused.
Copied from Perforce
 Change: 162717
 ServerID: perforce.ravenbrook.com
2007-07-02 15:43:34 +01:00
David Jones
4419b49dc0 Mps: more correct c style in trace.c immediately prior to
editing it.

Copied from Perforce
 Change: 162716
 ServerID: perforce.ravenbrook.com
2007-07-02 15:21:04 +01:00
Richard Kistruck
16ddbe30bc Mps br/diag: trace: new field in tracestruct: traceband band for
current band (eg via-F) of trace.  Fix for job001658.

Copied from Perforce
 Change: 162696
 ServerID: perforce.ravenbrook.com
2007-06-29 17:17:00 +01:00
Richard Kistruck
ff934c36ec Mps br/diag: trace.c: rearrange diag output into new
traceFindGrey_diag() function (preparatory to leaving it in when 
integrating to master).

Copied from Perforce
 Change: 162676
 ServerID: perforce.ravenbrook.com
2007-06-28 16:13:13 +01:00
Richard Kistruck
d17cc973fe mps br/diag: trace.c: (fix w3 build) cast integer character constant to char
w3build.bat: prepare for experimental release exp-162647

Copied from Perforce
 Change: 162647
 ServerID: perforce.ravenbrook.com
2007-06-22 17:19:23 +01:00
Richard Kistruck
6b9c65e9e9 mps br/diag: trace.c: tracefindgrey diag-out:
Represent runs of the same rank as "Rx" where R is rank and x is 
 0..9, a..z (x10), or *.  This makes output smaller.
 Accumulate report, and only output at end of trace.
 Represent "no more grey segs" as ".".

Copied from Perforce
 Change: 162644
 ServerID: perforce.ravenbrook.com
2007-06-22 16:05:52 +01:00
Richard Kistruck
ed2710c120 Mps br/diag: trace.c: (fix w3 build) cast integer character constant to char
Copied from Perforce
 Change: 162630
 ServerID: perforce.ravenbrook.com
2007-06-21 17:23:01 +01:00
Richard Kistruck
798f8b14fc Mps br/diag: start to demonstrate job001658 defect:
Show that after finding one RankFINAL segment, traceFindGrey then 
goes back to RankEXACT segs before tracing the next RankFINAL segment.

Copied from Perforce
 Change: 162626
 ServerID: perforce.ravenbrook.com
2007-06-21 15:59:33 +01:00
Richard Kistruck
56a68939f4 mps br/diag: (whitespace only) remove tabs from trace.c
Copied from Perforce
 Change: 162615
 ServerID: perforce.ravenbrook.com
2007-06-20 15:49:07 +01:00
Richard Kistruck
ac1f4fe729 Mps br/diag: diag in tracestart: show arena->chunkserial, and
output why as number (for conciseness).

Copied from Perforce
 Change: 162398
 ServerID: perforce.ravenbrook.com
2007-05-23 16:54:25 +01:00
Richard Kistruck
dad98183fc Mps br/diag: back to diag_with_printf again.
Copied from Perforce
 Change: 162397
 ServerID: perforce.ravenbrook.com
2007-05-23 16:39:26 +01:00
Richard Kistruck
6c68e81099 Mps br/diag: release exp-162395:
Switch from DIAG_WITH_PRINTF to _WITH_STREAM_WRITEF.
(Still just from TraceStart).

Copied from Perforce
 Change: 162395
 ServerID: perforce.ravenbrook.com
2007-05-23 15:45:32 +01:00
Richard Kistruck
079c82256e Mps br/diag: trace: always diag_printf-out the reason why this
trace started.  This is just to test the DIAG-out mechanism; it 
only affects variety.di.

Copied from Perforce
 Change: 162389
 ServerID: perforce.ravenbrook.com
2007-05-22 17:49:20 +01:00
Richard Kistruck
e3c37ff15e Mps br/diag: diag-out with writef and diag_stream does not work in cet.
Hope to fix in time, but for now I need DIAG-out to work, so switch 
to printf (yes, really, I know, sorry).
Also, only do DIAG-out in variety.di, to avoid damage to .ci.
So for now, remove DIAG_WRITEF and DIAG from arenavm and trace.
To test, add DIAG_PRINTF in trace.

Copied from Perforce
 Change: 162387
 ServerID: perforce.ravenbrook.com
2007-05-21 16:28:50 +01:00
Richard Kistruck
a31f4e9938 Mps br/diag: pass why reason down to tracestart.
Also: DIAG-out TraceStart reason, and -- if a non-monor collection -- 
 DIAG-out an ArenaDescribe.

Copied from Perforce
 Change: 162213
 ServerID: perforce.ravenbrook.com
2007-04-27 15:04:08 +01:00
Richard Kistruck
e1cfb1cca9 mps: (from branch unfixed-summary) 161987, 162000, 162001:
(plus some edits: integrations were not not verbatim)
   poolamc.c: Count the loops of amcScanNailed. 
    If amcScanNailed looped, ss.unfixedSummary is
    not accurate, so move all of the ScanStateSummary into 
    ss.fixedSumamry, so that trace.c's .verify.segsummary
    does not erroneously fail.
    This fixes job001548.
   trace.c: (comment) explain .verify.segsummary
   poolamc.c: AMCSegSketch: four character sketch of seg-state

Copied from Perforce
 Change: 162150
 ServerID: perforce.ravenbrook.com
2007-04-18 14:02:07 +01:00
Richard Kistruck
1c411f17a8 Mps br/unfixed-summary: if amcscannailed looped, ss.unfixedsummary is
not accurate, so move all of the ScanStateSummary into ss.fixedSumamry, 
so that <impl/trace/#verify.segsummary> does not erroneously fail.
See also log file a2nNailedLoopReset.txt.

Copied from Perforce
 Change: 162000
 ServerID: perforce.ravenbrook.com
2007-03-25 15:59:05 +01:00
Richard Kistruck
c00abc3574 Mps br/unfixed-sumamry: calling amcsegallobjsummary() before amcscaninner
shows summary is CORRECT.  So: discrepancy between refs seen by 
AMCSegAllobjSummary() and those seen by AMCScan() of boarded segment.

Copied from Perforce
 Change: 161996
 ServerID: perforce.ravenbrook.com
2007-03-23 17:30:55 +00:00
Richard Kistruck
dd46ee949f Mps br/unfixed-summary: comment-out the "what caused et?" segdescribes.
Save sketches (abzSketchTotal and abzSketchTotalPrev) in amcseg, 
which get Described when unfixedSummary is wrong: let's see whether 
there's a pattern to the way the previous summary was created.

Copied from Perforce
 Change: 161994
 ServerID: perforce.ravenbrook.com
2007-03-23 15:30:08 +00:00
Richard Kistruck
b6c86be8d4 Mps br/unfixed-summary: (debug only): on entering et (emergency tracing),
SegDescribe the seg being scanned, and the seg being Fixed (ie. holding 
the referent object that we have just failed to forward).

Copied from Perforce
 Change: 161979
 ServerID: perforce.ravenbrook.com
2007-03-22 14:08:57 +00:00
Richard Kistruck
038a4d823f Mps: if poolfix fails, aver that *refio is unchanged (from branch/unfixed-summary)
Copied from Perforce
 Change: 161969
 ServerID: perforce.ravenbrook.com
2007-03-21 14:36:37 +00:00
Richard Kistruck
4329f8b9a5 Mps branch unfixed-summary: if poolfix fails, aver that *refio is unchanged.
Copied from Perforce
 Change: 161966
 ServerID: perforce.ravenbrook.com
2007-03-21 13:34:44 +00:00
Richard Kistruck
91d7861050 Mps branch unfixed-summary: failure is during emergency tracing
Copied from Perforce
 Change: 161949
 ServerID: perforce.ravenbrook.com
2007-03-19 14:41:11 +00:00
Richard Kistruck
cc94c7bbe7 Mps branch unfixed-summary: leave in aver to catch fix of exact
ref into buffer (if my sums are correct)

Copied from Perforce
 Change: 161948
 ServerID: perforce.ravenbrook.com
2007-03-19 13:56:37 +00:00