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

Issue 2164703003: Fix for use-after-free of reload context (Closed)

Created:
4 years, 5 months ago by Florian Schneider
Modified:
4 years, 5 months ago
Reviewers:
Cutch
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix for use-after-free of reload context Delete the reload context after the last use. My first attempt did not work with our unit test framework for reload cc tests. When running unit tests the reload context is needed for longer, and deleted separately. BUG=#26895 R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/25070b85b1142fd30ecd7442af11b12aa90cc9f6

Patch Set 1 #

Patch Set 2 : s/test_mode/dont_delete_reload_context/, simplifications #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -24 lines) Patch
M runtime/vm/isolate.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M runtime/vm/isolate.cc View 1 2 chunks +15 lines, -13 lines 0 comments Download
M runtime/vm/isolate_reload.h View 1 3 chunks +1 line, -3 lines 0 comments Download
M runtime/vm/isolate_reload.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/unit_test.cc View 1 3 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Florian Schneider
This fixes the original use-after-free and works with the unit tests. Ideally, I'd like to ...
4 years, 5 months ago (2016-07-20 00:00:56 UTC) #2
Florian Schneider
Renaming and small simplification.
4 years, 5 months ago (2016-07-20 00:37:16 UTC) #3
Cutch
lgtm
4 years, 5 months ago (2016-07-20 00:44:39 UTC) #4
Florian Schneider
4 years, 5 months ago (2016-07-20 01:29:02 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
25070b85b1142fd30ecd7442af11b12aa90cc9f6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698