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

Issue 209003009: Fix memory-issue String::fromCharCodes, where a GC could invalidate an address. (Closed)

Created:
6 years, 9 months ago by Anders Johnsen
Modified:
6 years, 9 months ago
Reviewers:
srdjan, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Søren Gjesse
Visibility:
Public.

Description

Fix memory-issue String::fromCharCodes, where a GC could invalidate an address. The constructions is now reordered, so the address is not extracted until after allocation of the new string. BUG=https://code.google.com/p/dart/issues/detail?id=17602 R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=34320

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review fixes. #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -14 lines) Patch
M runtime/lib/string.cc View 1 2 2 chunks +9 lines, -14 lines 0 comments Download
M runtime/vm/object.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Anders Johnsen
6 years, 9 months ago (2014-03-24 15:02:43 UTC) #1
Ivan Posva
LGTMwC -Ivan https://codereview.chromium.org/209003009/diff/1/runtime/lib/string.cc File runtime/lib/string.cc (right): https://codereview.chromium.org/209003009/diff/1/runtime/lib/string.cc#newcode203 runtime/lib/string.cc:203: return Object::null(); Please put an UNREACHABLE here ...
6 years, 9 months ago (2014-03-24 18:30:43 UTC) #2
Anders Johnsen
Thanks, landing. Let me know if there is another way to satisfy the compiler, and ...
6 years, 9 months ago (2014-03-24 18:48:45 UTC) #3
Anders Johnsen
6 years, 9 months ago (2014-03-24 18:56:57 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 manually as r34320 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698