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

Issue 1651993002: [interpreter] Clear pending message object on handler entry. (Closed)

Created:
4 years, 10 months ago by Michael Starzinger
Modified:
4 years, 10 months ago
Reviewers:
rmcilroy
CC:
v8-reviews_googlegroups.com, oth
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[interpreter] Clear pending message object on handler entry. This clears the currently pending message object whenever a try-block or a finally-block is being entered in interpreted code. The intention is to avoid memory leaks introduced by the message object. Also the message object is being restored when a finally-block exits. R=rmcilroy@chromium.org TEST=cctest/test-heap/MessageObjectLeak BUG=v8:4674 LOG=n Committed: https://crrev.com/e814457675d615aaebb14ae723a42c756492f732 Cr-Commit-Position: refs/heads/master@{#33704}

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Enable test. #

Total comments: 1

Patch Set 4 : Save and restore. #

Patch Set 5 : Adapt status. #

Total comments: 4

Patch Set 6 : Addressed comments. #

Patch Set 7 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -146 lines) Patch
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 4 chunks +17 lines, -4 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M src/runtime/runtime-interpreter.cc View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M test/cctest/cctest.status View 1 2 3 4 5 6 1 chunk +1 line, -4 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 4 5 6 4 chunks +176 lines, -137 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
Michael Starzinger
4 years, 10 months ago (2016-02-01 12:12:33 UTC) #1
rmcilroy
lgtm, thanks. https://codereview.chromium.org/1651993002/diff/40001/test/cctest/interpreter/test-bytecode-generator.cc File test/cctest/interpreter/test-bytecode-generator.cc (right): https://codereview.chromium.org/1651993002/diff/40001/test/cctest/interpreter/test-bytecode-generator.cc#newcode4453 test/cctest/interpreter/test-bytecode-generator.cc:4453: /* */ R(0), U8(0), // Nice hack ...
4 years, 10 months ago (2016-02-01 14:21:46 UTC) #2
Michael Starzinger
PTAL. I had to extend this to do the whole "save and restore" dance for ...
4 years, 10 months ago (2016-02-01 18:35:35 UTC) #4
rmcilroy
https://codereview.chromium.org/1651993002/diff/80001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1651993002/diff/80001/src/interpreter/bytecode-generator.cc#newcode1193 src/interpreter/bytecode-generator.cc:1193: builder()->CallRuntime(Runtime::kInterpreterClearPendingMessage, no_reg, 0); Could we make InterpreterGetPendingMessage also clear ...
4 years, 10 months ago (2016-02-01 20:57:14 UTC) #5
Michael Starzinger
Addressed comments. https://codereview.chromium.org/1651993002/diff/80001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1651993002/diff/80001/src/interpreter/bytecode-generator.cc#newcode1193 src/interpreter/bytecode-generator.cc:1193: builder()->CallRuntime(Runtime::kInterpreterClearPendingMessage, no_reg, 0); On 2016/02/01 20:57:14, rmcilroy ...
4 years, 10 months ago (2016-02-02 09:41:43 UTC) #6
rmcilroy
lgtm, thanks.
4 years, 10 months ago (2016-02-03 11:37:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1651993002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1651993002/120001
4 years, 10 months ago (2016-02-03 13:43:36 UTC) #10
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-03 13:52:38 UTC) #12
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 13:52:53 UTC) #14
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e814457675d615aaebb14ae723a42c756492f732
Cr-Commit-Position: refs/heads/master@{#33704}

Powered by Google App Engine
This is Rietveld 408576698