Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Issue 99174: Artificially increase the ref count on WebCore strings that we use as... (Closed)

Created:
11 years, 8 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
Reviewers:
Kasper Lund
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Artificially increase the ref count on WebCore strings that we use as external V8 strings. We seem to be occasionally losing the data for our external strings. The current hypothesis is that there is a reference counting bug in WebCore somewhere which is leading to premature deletion of the string data. This change is an attempt to verify that this is in fact the case. By artificially increasing the ref count on the strings, we should reduce the likelihood of accidental deletion because of ref counting being slightly off. If we can confirm that this removes most of the crashes, we know that the problem is WebCore ref counting related. BUG=9746 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14838

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -2 lines) Patch
M webkit/port/bindings/v8/v8_binding.cpp View 1 2 2 chunks +30 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
11 years, 8 months ago (2009-04-29 08:05:10 UTC) #1
Kasper Lund
LGTM. http://codereview.chromium.org/99174/diff/1/2 File webkit/port/bindings/v8/v8_binding.cpp (right): http://codereview.chromium.org/99174/diff/1/2#newcode32 Line 32: for (int i = 0; i < ...
11 years, 8 months ago (2009-04-29 08:46:05 UTC) #2
Mads Ager (chromium)
11 years, 8 months ago (2009-04-29 08:59:50 UTC) #3
On 2009/04/29 08:46:05, Kasper Lund wrote:
> LGTM.
> 
> http://codereview.chromium.org/99174/diff/1/2
> File webkit/port/bindings/v8/v8_binding.cpp (right):
> 
> http://codereview.chromium.org/99174/diff/1/2#newcode32
> Line 32: for (int i = 0; i < 5; i++) {
> I think should introduce a named constant for the 5. Something like
> kArtificialRefs.

Yes, we should.  Done.

Powered by Google App Engine
This is Rietveld 408576698