1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-25 08:12:11 -07:00
Commit graph

30 commits

Author SHA1 Message Date
Richard Brooksby
3154cbed7d Making arenas properly inherit from instances, and converting remaining method calls to use the method macro, while noting uses which are inside-out.
Copied from Perforce
 Change: 190856
 ServerID: perforce.ravenbrook.com
2016-04-10 14:00:55 +01:00
Richard Brooksby
d54be414d9 Merging branch/2016-03-12/pause into the master sources.
Copied from Perforce
 Change: 190053
 ServerID: perforce.ravenbrook.com
2016-03-15 06:31:08 +00:00
Richard Brooksby
f0c95255b4 Don't return to the mutator if there's an emergency.
Clarifying "more time" and what we do if there's isn't.

Copied from Perforce
 Change: 190050
 ServerID: perforce.ravenbrook.com
2016-03-15 06:25:53 +00:00
Gareth Rees
2a3c4e0590 Address points made by rb in review <https://info.ravenbrook.com/mail/2016/03/14/18-48-19/0/>
Copied from Perforce
 Change: 190031
 ServerID: perforce.ravenbrook.com
2016-03-14 20:10:14 +00:00
Gareth Rees
7ba1f1394e Don't forget to multiply by clockspersec!
Copied from Perforce
 Change: 189927
 ServerID: perforce.ravenbrook.com
2016-03-12 22:56:52 +00:00
Gareth Rees
459a9f775d Implement pause time control.
Copied from Perforce
 Change: 189921
 ServerID: perforce.ravenbrook.com
2016-03-12 22:08:26 +00:00
Richard Brooksby
32d42e00cd Catch-up merge from master sources to branch/2015-08-25/tradeoff.
Copied from Perforce
 Change: 189891
 ServerID: perforce.ravenbrook.com
2016-03-12 15:13:15 +00:00
Gareth Rees
4623be4a03 Rename chain.h to locus.h, for consistency with other modules, where the interface has the same name as the implemention.
Copied from Perforce
 Change: 189682
 ServerID: perforce.ravenbrook.com
2016-03-06 18:56:32 +00:00
Richard Brooksby
c47b507def Fix typo found by gdr.
Copied from Perforce
 Change: 189376
 ServerID: perforce.ravenbrook.com
2016-02-28 20:12:12 +00:00
Richard Brooksby
6aec944f87 Try later allocation plans if growing the arena fails.
Copied from Perforce
 Change: 189363
 ServerID: perforce.ravenbrook.com
2016-02-26 19:59:55 +00:00
Richard Brooksby
5fc8accc63 Purge spare committed memory when growing the arena fails due to the commit limit.
Copied from Perforce
 Change: 189362
 ServerID: perforce.ravenbrook.com
2016-02-26 19:59:55 +00:00
Richard Brooksby
233539fbbc Catch-up merge from branch/2015-08-11/policy.
Copied from Perforce
 Change: 189339
 ServerID: perforce.ravenbrook.com
2016-02-25 23:08:49 +00:00
Nick Barnes
7fc7d9c085 Remove redundant assignment.
Copied from Perforce
 Change: 188292
 ServerID: perforce.ravenbrook.com
2015-09-09 15:20:01 +01:00
Gareth Rees
b8df4963ee Can't assume that the caller will give us any available time.
Copied from Perforce
 Change: 188259
 ServerID: perforce.ravenbrook.com
2015-09-04 22:35:03 +01:00
Gareth Rees
38b52d7a05 Avoid "iso c90 forbids mixed declarations and code" error from gcc.
Copied from Perforce
 Change: 188257
 ServerID: perforce.ravenbrook.com
2015-09-04 22:28:40 +01:00
Gareth Rees
d2662a861e Catch-up merge from branch/2015-08-11/policy to branch/2015-08-25/tradeoff.
Copied from Perforce
 Change: 188250
 ServerID: perforce.ravenbrook.com
2015-09-04 19:13:28 +01:00
Gareth Rees
800aa3b250 Policycollectiontime is now local to policy.c.
Improve comment for policyCondemnChain (document the mortalityReturn parameter to; fix design reference).

Copied from Perforce
 Change: 188240
 ServerID: perforce.ravenbrook.com
2015-09-04 16:02:46 +01:00
Gareth Rees
db81205af5 Move policy for mps_arena_step to policy module.
Copied from Perforce
 Change: 188238
 ServerID: perforce.ravenbrook.com
2015-09-04 15:25:37 +01:00
Gareth Rees
0ff67113ae Separate the values "more work to do?" and "amount of work done" in tracepoll. previously, the code used "amount of work done > 0" when it needed "more work to do?" but that's not right, because on the last two calls to traceadvance, no "work" is done (because reclaim work is not measured), but there may still be more work to do.
Copied from Perforce
 Change: 188218
 ServerID: perforce.ravenbrook.com
2015-09-03 15:51:37 +01:00
Gareth Rees
1437590cb3 Move the arenaemergency test up to policypollagain.
Copied from Perforce
 Change: 188217
 ServerID: perforce.ravenbrook.com
2015-09-03 15:39:39 +01:00
Gareth Rees
68489eec1e Move the clearing of the emergency flag down into tracedestroy{init,finish}.
Copied from Perforce
 Change: 188216
 ServerID: perforce.ravenbrook.com
2015-09-03 15:35:38 +01:00
Gareth Rees
61bae42d43 Introduce new type work representing a measure of work done by the collector. use this systematically to make the code clearer.
Copied from Perforce
 Change: 188210
 ServerID: perforce.ravenbrook.com
2015-09-03 13:01:55 +01:00
Gareth Rees
f1441b58d1 Don't start a trace unless there's work to do.
Copied from Perforce
 Change: 188204
 ServerID: perforce.ravenbrook.com
2015-09-02 21:55:24 +01:00
Gareth Rees
b5edbd02ce Use sizeisarenagrains macro.
Copied from Perforce
 Change: 188172
 ServerID: perforce.ravenbrook.com
2015-08-25 15:03:35 +01:00
Gareth Rees
3274a4fba6 Condition >= 1.0 is needed to ensure division can't overflow.
Copied from Perforce
 Change: 188170
 ServerID: perforce.ravenbrook.com
2015-08-25 13:50:19 +01:00
Gareth Rees
dd676e2919 New functions policypoll and policypollagain.
Update design.strategy.

Copied from Perforce
 Change: 188165
 ServerID: perforce.ravenbrook.com
2015-08-25 13:27:17 +01:00
Gareth Rees
46280a07ab New function policycollectiontime estimates the time needed to collect the arena. mysterious constants are given names and moved to config.h.
Copied from Perforce
 Change: 188160
 ServerID: perforce.ravenbrook.com
2015-08-21 15:27:14 +01:00
Gareth Rees
ca71b6dbe6 New function policycondemnchain.
Copied from Perforce
 Change: 188156
 ServerID: perforce.ravenbrook.com
2015-08-21 11:01:00 +01:00
Gareth Rees
32acad85ea New function policystarttrace decides whether to start a trace.
Copied from Perforce
 Change: 188154
 ServerID: perforce.ravenbrook.com
2015-08-20 16:57:33 +01:00
Gareth Rees
2097678a37 New module policy.c.
Copied from Perforce
 Change: 188152
 ServerID: perforce.ravenbrook.com
2015-08-19 15:03:47 +01:00