1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-22 21:50:45 -08:00
Commit graph

113 commits

Author SHA1 Message Date
Richard Kistruck
35dc5cd940 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
ae88d40843 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
7d4f1bcc0b 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
fdd6a39f53 Mps: more checking.
Copied from Perforce
 Change: 162742
 ServerID: perforce.ravenbrook.com
2007-07-03 15:44:24 +01:00
David Jones
363088e2a3 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
98bd3617a3 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
c20569b283 Mps: tracebandincrement renamed to tracebandadvance.
Copied from Perforce
 Change: 162732
 ServerID: perforce.ravenbrook.com
2007-07-03 14:00:20 +01:00
David Jones
75b8750d3c Mps: implements better band tracing.
Copied from Perforce
 Change: 162718
 ServerID: perforce.ravenbrook.com
2007-07-02 16:10:48 +01:00
David Jones
f63d05eaaf 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
afe0c9167d 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
cb7466253b 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
044ed29e91 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
c333ad1add 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
d796426ba5 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
bb72c7075e 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
2b59688236 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
4d22c6b819 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
de2c83bebe 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
45038f2c52 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
4f9f9477e8 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
779bcc1583 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
6749f30dc0 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
1a9477b2cf 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
71957d32cc 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
bfe1a99fcf 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
70eefd4387 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
5e4636ec8b 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
84f8809886 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
42ae255775 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
fa6f33d5e5 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
75bc16ac8e 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
9ea3e4e3e6 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
Richard Kistruck
f0b7f6c16a Mps branch unfixed-summary: tracefix checks for exact refs to neo; requires new segtrivbuffer[seg.c]
Copied from Perforce
 Change: 161889
 ServerID: perforce.ravenbrook.com
2007-03-05 19:27:45 +00:00
Richard Kistruck
0363f43c7a Mps branch unfixed-summary: sprinkle printfs; integ from master
Copied from Perforce
 Change: 161881
 ServerID: perforce.ravenbrook.com
2007-03-02 13:11:29 +00:00
Richard Kistruck
cedbe8bc58 Mps trace.c: (temp for debugging) printfs:
- TraceStart why message;
  - nPolls, trace->rate;
  - dynamicDeferral, ArenaAvail;
  - full collect finishingTime.

Copied from Perforce
 Change: 161357
 ServerID: perforce.ravenbrook.com
2006-12-29 15:23:23 +00:00
Richard Kistruck
7cb185f2b2 Mps integrate gcgenmsg into master:
- new mps_message_type_gc_start() explains what triggered a collection;
  - design/message: add guide.

Copied from Perforce
 Change: 161204
 ServerID: perforce.ravenbrook.com
2006-12-12 09:56:09 +00:00
Richard Kistruck
8ff037ffff Mps gcgenmsg: (comment only)
TraceStart may overwrite fields of in-use message.
TraceStart may silently drop the TraceStartMessage.

Copied from Perforce
 Change: 161203
 ServerID: perforce.ravenbrook.com
2006-12-12 09:02:42 +00:00
Richard Kistruck
02a7a9bc52 Mps gcgenmsg: 2006 copyrights
Copied from Perforce
 Change: 161202
 ServerID: perforce.ravenbrook.com
2006-12-12 08:47:10 +00:00
Richard Kistruck
62770e1f4a Mps _gc_start: make tracestartmessage reasons specific trigger names, not broad categories.
Make _why text more explanatory.

Copied from Perforce
 Change: 161196
 ServerID: perforce.ravenbrook.com
2006-12-11 16:17:31 +00:00
Richard Kistruck
09cf54c122 Split-asserts: where an aver or checkl has two failure modes combined
with &&, split it into two AVERs or CHECKLs.  

Copied from Perforce
 Change: 155170
 ServerID: perforce.ravenbrook.com
2005-09-30 10:50:48 +01:00
David Jones
2a4b2d0bb7 Mps: now uses correct test for remembering / restoring
SegSummary.

Copied from Perforce
 Change: 64983
 ServerID: perforce.ravenbrook.com
2003-11-19 14:15:49 +00:00
David Jones
72ffc59e3c Mps: bug fix revealed by mpsicv
Copied from Perforce
 Change: 64245
 ServerID: perforce.ravenbrook.com
2003-11-14 11:16:25 +00:00
David Jones
35130274eb Mps: implementing remember / restore protection for real.
Copied from Perforce
 Change: 64140
 ServerID: perforce.ravenbrook.com
2003-11-13 17:07:13 +00:00
David Jones
9e1db84c62 Mps: implementing mps_arena_expose
Copied from Perforce
 Change: 62949
 ServerID: perforce.ravenbrook.com
2003-11-04 12:34:54 +00:00
David Jones
091cf2833d Mps: added mps_message_type_gc_start()
Copied from Perforce
 Change: 39781
 ServerID: perforce.ravenbrook.com
2003-02-19 16:34:08 +00:00
David Jones
da6044a59a Mps: added (untested) internals for messagetypegcstart
Copied from Perforce
 Change: 39768
 ServerID: perforce.ravenbrook.com
2003-02-19 13:27:16 +00:00
Nick Barnes
c006b14a17 Here is one cut at opportunistically collecting the world. it's not very good.
Copied from Perforce
 Change: 37577
 ServerID: perforce.ravenbrook.com
2003-01-03 13:08:08 +00:00
Nick Barnes
bddcae1d08 Add mps_arena_start_collect(): starting an incremental world collection.
Copied from Perforce
 Change: 37576
 ServerID: perforce.ravenbrook.com
2003-01-03 12:58:12 +00:00
Richard Brooksby
ae3c248878 Changing global graphics copyright notice to say "portions copyright" to avoid confusion.
Copied from Perforce
 Change: 30258
 ServerID: perforce.ravenbrook.com
2002-06-18 16:28:41 +01:00
Richard Brooksby
e854cd8e1d Merging branch mps/2002-05-22/open-source-prep.
Making some new files consistent with changes from that branch.
Deleting some new Global Graphics confidential files.

Copied from Perforce
 Change: 30256
 ServerID: perforce.ravenbrook.com
2002-06-18 16:19:34 +01:00