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

Issue 10933021: - Do not limit the compiler message buffer, by allocating the message (Closed)

Created:
8 years, 3 months ago by Ivan Posva
Modified:
8 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Do not limit the compiler message buffer, by allocating the message into a String object. Committed: https://code.google.com/p/dart/source/detail?r=12202

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -79 lines) Patch
M vm/object.h View 1 chunk +1 line, -0 lines 0 comments Download
M vm/object.cc View 1 chunk +12 lines, -5 lines 2 comments Download
M vm/parser.h View 1 chunk +5 lines, -8 lines 0 comments Download
M vm/parser.cc View 3 chunks +37 lines, -66 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Ivan Posva
8 years, 3 months ago (2012-09-11 14:30:29 UTC) #1
Mads Ager (google)
LGTM!
8 years, 3 months ago (2012-09-11 14:42:16 UTC) #2
hausner
lgtm https://chromiumcodereview.appspot.com/10933021/diff/1/vm/object.cc File vm/object.cc (right): https://chromiumcodereview.appspot.com/10933021/diff/1/vm/object.cc#newcode9512 vm/object.cc:9512: va_copy(args_copy, args); I am not familiar with va_copy. ...
8 years, 3 months ago (2012-09-11 16:11:14 UTC) #3
hausner
This topic sounded familiar to me. Earlier this year, you mentioned in a code review ...
8 years, 3 months ago (2012-09-11 16:14:20 UTC) #4
Ivan Posva
8 years, 3 months ago (2012-09-11 16:14:39 UTC) #5
https://chromiumcodereview.appspot.com/10933021/diff/1/vm/object.cc
File vm/object.cc (right):

https://chromiumcodereview.appspot.com/10933021/diff/1/vm/object.cc#newcode9512
vm/object.cc:9512: va_copy(args_copy, args);
On 2012/09/11 16:11:14, hausner wrote:
> I am not familiar with va_copy. Is va_start no longer needed due to the
va_copy?

va_copy creates a copy of the passed in va_list args as the use of args is
destructive. Essentially it is in place of a va_start, which is used when
dealing with ... parameters.

Powered by Google App Engine
This is Rietveld 408576698