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

Issue 2352933002: Reland of Fix async/await memory leak (Closed)

Created:
4 years, 3 months ago by Dan Ehrenberg
Modified:
4 years, 3 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Reland of Fix async/await memory leak (patchset #1 id:1 of https://codereview.chromium.org/2348403003/ ) This patch closes a memory leak in async/await where the desugaring was creating a situation analagous to that described in v8:5002. Intermediate Promises were being kept alive, so a long-running loop would cause linear memory usage on the heap. This patch returns undefined to the 'then' callback passed into PerformPromiseThen in order to avoid this hazard. Test expectations are fixed to remove expecting extraneous events which occurred on Promises that are now not given unnecessarily complex resolution paths before being thrown away. This patch is a reland; originally, tests which exercised the memory exhaustion were checked in. Although it's possible to find good parameters for running such tests locally, it is difficult to automate the tests between the rock of timeouts and the hard place of too-small heaps causing memory exhaustion in some modes even when there is no leak. BUG=v8:5390 Committed: https://crrev.com/bf43f883c1e6bca974993375085fc63137846f0d Cr-Commit-Position: refs/heads/master@{#39520}

Patch Set 1 #

Patch Set 2 : Note about tests; remove bad tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -27 lines) Patch
M src/js/harmony-async-await.js View 1 1 chunk +16 lines, -4 lines 0 comments Download
M src/parsing/parser.cc View 1 2 chunks +33 lines, -9 lines 0 comments Download
M test/mjsunit/harmony/debug-async-function-async-task-event.js View 1 1 chunk +15 lines, -14 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
Dan Ehrenberg
Created Reland of Fix async/await memory leak
4 years, 3 months ago (2016-09-19 23:23:21 UTC) #1
adamk
lgtm, but please rewrite the CL description (it's gotten very hard for my brain to ...
4 years, 3 months ago (2016-09-19 23:29:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2352933002/140001
4 years, 3 months ago (2016-09-19 23:36:17 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:140001)
4 years, 3 months ago (2016-09-19 23:51:36 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 23:52:03 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/bf43f883c1e6bca974993375085fc63137846f0d
Cr-Commit-Position: refs/heads/master@{#39520}

Powered by Google App Engine
This is Rietveld 408576698