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

Issue 232223004: - Do not keep the environment alive past the process spawn. (Closed)

Created:
6 years, 8 months ago by Ivan Posva
Modified:
6 years, 8 months ago
Reviewers:
Anders Johnsen, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Do not keep the environment alive past the process spawn. - Avoid creation of many temp objects while creating the process environment. - "if (identical(true, value))" makes no sense. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=34907

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -13 lines) Patch
M runtime/bin/process_patch.dart View 4 chunks +14 lines, -13 lines 7 comments Download

Messages

Total messages: 6 (0 generated)
Ivan Posva
6 years, 8 months ago (2014-04-10 00:01:20 UTC) #1
siva
lgtm
6 years, 8 months ago (2014-04-10 00:11:04 UTC) #2
Ivan Posva
Committed patchset #1 manually as r34907 (presubmit successful).
6 years, 8 months ago (2014-04-10 00:15:49 UTC) #3
Anders Johnsen
https://codereview.chromium.org/232223004/diff/1/runtime/bin/process_patch.dart File runtime/bin/process_patch.dart (right): https://codereview.chromium.org/232223004/diff/1/runtime/bin/process_patch.dart#newcode195 runtime/bin/process_patch.dart:195: var environmentEntryHandler = (key, value) { void environmentEntryHandler(key, value) ...
6 years, 8 months ago (2014-04-10 07:06:44 UTC) #4
Ivan Posva
Thanks, -Ivan https://codereview.chromium.org/232223004/diff/1/runtime/bin/process_patch.dart File runtime/bin/process_patch.dart (right): https://codereview.chromium.org/232223004/diff/1/runtime/bin/process_patch.dart#newcode195 runtime/bin/process_patch.dart:195: var environmentEntryHandler = (key, value) { On ...
6 years, 8 months ago (2014-04-10 07:27:38 UTC) #5
Anders Johnsen
6 years, 8 months ago (2014-04-10 08:08:12 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/232223004/diff/1/runtime/bin/process_patch.dart
File runtime/bin/process_patch.dart (right):

https://codereview.chromium.org/232223004/diff/1/runtime/bin/process_patch.da...
runtime/bin/process_patch.dart:195: var environmentEntryHandler = (key, value) {
On 2014/04/10 07:27:38, Ivan Posva wrote:
> On 2014/04/10 07:06:44, Anders Johnsen wrote:
> > void environmentEntryHandler(key, value) {
> >  ...
> > }
> > 
> > ?
> 
> They are equivalent.

Yes, but very odd style (not what we usually use in dart:io).

https://codereview.chromium.org/232223004/diff/1/runtime/bin/process_patch.da...
runtime/bin/process_patch.dart:209:
Platform.environment.forEach(environmentEntryHandler);
On 2014/04/10 07:27:38, Ivan Posva wrote:
> On 2014/04/10 07:06:44, Anders Johnsen wrote:
> > This is wrong. Now parent environment will override child.
> 
> I see it now. It was not obvious in the original code. I'll fix this tomorrow.

I'll start cooking on a test.

Powered by Google App Engine
This is Rietveld 408576698