Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3192)

Issue 7142053: [Google 4.7] Fix for Google Ref: b/8028506

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by saugustine
Modified:
11 years, 5 months ago
Reviewers:
Cary
CC:
gcc-patches_gcc.gnu.org
Visibility:
Public.

Description

commit dc0b9bc855444332e7a3b1f3473a70ce0c72d66c Author: Sterling Augustine <saugustine@google.com> Date: Fri Jan 18 10:38:30 2013 -0800 Fix for Google Ref: b/8028506 Calling find_AT_string can resize the debug_str hash table, even if the string is already present in the hash table--go figure. So after indices have been assigned, and the hash table is exactly three-quarters full, calling find_AT_string is verboten. This change moves some calls around such that the above scenario never happens, all strings will be found and assigned prior to indices being assigned. M gcc/dwarf2out.c Tested: With full bootstrap and fission testing.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M gcc/dwarf2out.c View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 3
saugustine
commit dc0b9bc855444332e7a3b1f3473a70ce0c72d66c Author: Sterling Augustine <saugustine@google.com> Date: Fri Jan 18 10:38:30 2013 -0800 Fix for ...
11 years, 5 months ago (2013-01-18 18:45:30 UTC) #1
Cary
> commit dc0b9bc855444332e7a3b1f3473a70ce0c72d66c > Author: Sterling Augustine <saugustine@google.com> > Date: Fri Jan 18 10:38:30 2013 ...
11 years, 5 months ago (2013-01-18 19:04:29 UTC) #2
saugustine
11 years, 5 months ago (2013-01-18 21:50:51 UTC) #3
On Fri, Jan 18, 2013 at 11:04 AM, Cary Coutant <ccoutant@google.com> wrote:
>> commit dc0b9bc855444332e7a3b1f3473a70ce0c72d66c
>> Author: Sterling Augustine <saugustine@google.com>
>> Date:   Fri Jan 18 10:38:30 2013 -0800
>>
>>     Fix for Google Ref: b/8028506
>>
>>     Calling find_AT_string can resize the debug_str hash table, even if the
>>     string is already present in the hash table--go figure.  So after
indices
>>     have been assigned, and the hash table is exactly three-quarters full,
>>     calling find_AT_string is verboten.
>>
>>     This change moves some calls around such that the above scenario never
>>     happens, all strings will be found and assigned prior to indices being
>>     assigned.
>>
>> M       gcc/dwarf2out.c
>
> OK for google/gcc-4_7.
>
> I'll be filing an upstream bug for this problem, and I'd like to get
> this fix into 4.8 as well.
>
> -cary

Committed as posted. Thanks. These do need to go into trunk, as they
complicate using fission.

Sterling
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b