Florian Krohm
aa74d46212
Replace the SegName array with a simple string table.
...
The validity of this change follows from the following observations:
(1) There is a single source for allocating and storing segment names,
namely allocate_segname.
(2) For all invocations of allocate_segname the returned value (which
represents the segmant name) is assigned to NSegment::fnIdx.
(3) All but one assignments to NSegment::fnIdx assign allocate_segname.
The single exception assigns -1 in init_nsegment. That function is
called whenever a new segment (named or unnamed) is allocated.
For a segment name to become unused there must be an assignment to
NSegment::fnIdx which was previously assigned a return value from
allocate_segname. There is no such assignment.
It follows that all segment names are in use at all times, hence
SegName::inUse == True for all SegNames. So we can constant fold it
and don't need to represent it.
Pass 3 in preen_nsegments is obsolete as there are no segment names to
garbage collect.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14898
2015-01-31 00:29:50 +00:00
..
2013-07-03 10:00:19 +00:00
2015-01-31 00:29:50 +00:00
2014-11-29 13:31:18 +00:00
2015-01-24 00:02:19 +00:00
2014-10-25 19:20:38 +00:00
2014-08-07 23:35:54 +00:00
2014-12-19 20:29:22 +00:00
2014-11-04 17:44:21 +00:00
2013-10-18 14:27:36 +00:00
2014-11-04 17:44:21 +00:00
2015-01-04 17:20:45 +00:00
2015-01-04 17:20:45 +00:00
2015-01-26 09:00:51 +00:00
2014-11-04 17:44:21 +00:00
2014-11-06 20:23:22 +00:00
2014-08-13 09:04:02 +00:00
2014-11-04 17:44:21 +00:00
2012-07-20 16:46:54 +00:00
2013-03-28 15:53:21 +00:00
2015-01-24 18:26:05 +00:00
2014-09-12 22:24:51 +00:00
2014-08-07 23:17:29 +00:00
2014-08-29 22:53:19 +00:00
2014-09-27 18:01:19 +00:00
2015-01-20 18:46:13 +00:00
2013-10-18 14:27:36 +00:00
2014-10-22 22:25:30 +00:00
2014-12-29 19:06:40 +00:00
2014-10-22 17:42:37 +00:00
2014-11-14 19:25:08 +00:00
2014-10-22 22:25:30 +00:00
2014-10-18 10:58:05 +00:00
2014-10-22 22:25:30 +00:00
2014-10-27 12:06:35 +00:00
2014-11-14 19:25:08 +00:00
2014-12-12 19:32:10 +00:00
2015-01-10 15:25:54 +00:00
2014-08-07 23:35:54 +00:00
2014-10-23 17:47:15 +00:00
2014-12-17 11:52:39 +00:00
2015-01-08 21:05:03 +00:00
2014-12-29 17:04:46 +00:00
2014-11-29 13:31:18 +00:00
2014-10-18 16:17:13 +00:00
2014-09-15 18:50:17 +00:00
2014-10-22 22:25:30 +00:00
2015-01-04 17:20:45 +00:00
2015-01-04 17:20:45 +00:00
2014-12-13 18:35:00 +00:00
2015-01-08 21:05:03 +00:00
2014-10-18 16:17:13 +00:00
2014-09-11 21:19:17 +00:00
2015-01-04 17:20:45 +00:00
2014-08-07 23:35:54 +00:00
2013-10-21 19:57:08 +00:00
2015-01-13 17:33:59 +00:00
2014-09-03 16:01:10 +00:00
2015-01-04 17:20:45 +00:00
2015-01-13 17:33:59 +00:00
2014-08-07 23:17:29 +00:00
2014-08-12 21:11:44 +00:00
2014-10-18 16:17:13 +00:00
2014-10-18 20:56:13 +00:00
2014-11-14 14:47:12 +00:00
2014-05-14 20:39:27 +00:00
2013-10-18 14:27:36 +00:00
2015-01-23 19:55:31 +00:00
2013-10-18 14:27:36 +00:00
2014-10-06 16:41:14 +00:00
2014-08-29 22:53:19 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2013-12-16 22:52:20 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2014-10-25 19:20:38 +00:00
2013-10-18 14:27:36 +00:00
2014-06-14 16:30:09 +00:00
2014-10-25 19:20:38 +00:00
2013-10-18 14:27:36 +00:00
2014-09-18 18:35:47 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2014-09-24 12:06:55 +00:00
2014-10-06 21:04:14 +00:00
2013-10-18 14:27:36 +00:00
2014-08-29 22:53:19 +00:00
2013-10-18 14:27:36 +00:00
2014-10-22 22:25:30 +00:00
2013-10-18 14:27:36 +00:00
2014-11-14 19:25:08 +00:00
2014-11-29 14:41:32 +00:00
2014-05-03 21:22:55 +00:00
2013-10-18 14:27:36 +00:00
2014-10-23 17:47:15 +00:00
2013-10-18 14:27:36 +00:00
2014-08-07 23:35:54 +00:00
2014-08-07 23:17:29 +00:00
2014-11-12 19:43:29 +00:00
2013-10-18 14:27:36 +00:00
2013-09-15 10:42:26 +00:00
2014-03-20 23:00:09 +00:00
2014-10-22 22:25:30 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2014-08-29 22:53:19 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2014-08-29 22:53:19 +00:00
2014-10-22 22:25:30 +00:00
2014-01-12 12:54:00 +00:00
2013-10-18 14:27:36 +00:00
2014-10-06 16:41:14 +00:00
2015-01-04 17:20:45 +00:00
2014-09-03 16:01:10 +00:00
2015-01-04 17:20:45 +00:00
2014-08-07 23:17:29 +00:00
2015-01-13 17:33:59 +00:00
2014-08-09 16:55:59 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2013-10-18 14:27:36 +00:00
2014-11-04 17:44:21 +00:00
2013-12-01 14:56:28 +00:00
2015-01-05 13:31:07 +00:00
2014-12-21 17:53:42 +00:00
2014-04-15 22:35:23 +00:00