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

Issue 1522703002: Add Isolate::DiscardThreadSpecificMetadata method to embedder API. (Closed)

Created:
5 years ago by alexk
Modified:
5 years ago
CC:
Paweł Hajdan Jr., v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add Isolate::DiscardThreadSpecificMetadata method to embedder API. If many threads use the same Isolate (or many Isolates) and then terminate, their PerIsolateThreadData objects are never cleaned up, resulting in a slow memory leak and, worse, the PerIsolateThreadData chain getting larger and larger, adversely affecting performance. In this situation, embedders will now be encouraged to apply DiscardThreadSpecificMetadata against any Isolate a thread is done with, especially if the thread is about to terminate. Note that it is harmless to run DiscardThreadSpecificMetadata against an Isolate for which a thread has no thread data and per-Isolate thread data can be reestablished if a thread starts using an Isolate again after running DiscardThreadSpecificMetadata against it. It is, however, an embedder error to run DiscardThreadSpecificMetadata against an Isolate in thread with a Locker for the Isolate in the stack or against an Entered Isolate. This change cannot cause any change in behavior in existing apps as the only added coded can only be reached via the new DiscardThreadSpecificMetadata method. R=Jakob, jochen BUG= Committed: https://crrev.com/aeb8073c4a540010bb637d50790018041c5041c8 Cr-Commit-Position: refs/heads/master@{#32909}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove rocketsoftware wildcard from AUTHORS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -18 lines) Patch
M AUTHORS View 1 1 chunk +1 line, -0 lines 0 comments Download
M include/v8.h View 1 chunk +9 lines, -0 lines 0 comments Download
M src/api.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/isolate.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M test/cctest/test-lockers.cc View 1 chunk +23 lines, -18 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
alexk
Phew! My drunkard's walk finally succeeded in getting this issue under my work e-mail address. ...
5 years ago (2015-12-12 01:23:28 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1522703002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1522703002/1
5 years ago (2015-12-12 01:30:38 UTC) #3
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years ago (2015-12-12 01:30:40 UTC) #5
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1522703002/diff/1/AUTHORS File AUTHORS (right): https://codereview.chromium.org/1522703002/diff/1/AUTHORS#newcode31 AUTHORS:31: Rocket Software, Inc. <*@rocketsoftware.com> hum, I can't find this ...
5 years ago (2015-12-14 12:33:20 UTC) #6
jochen (gone - plz use gerrit)
ok, the CLA stuff is sorted out now can you remove the wildcard entry, so ...
5 years ago (2015-12-16 08:22:54 UTC) #7
alexk
AUTHORS fixed up.
5 years ago (2015-12-16 13:11:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1522703002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1522703002/20001
5 years ago (2015-12-16 15:04:52 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-16 15:49:32 UTC) #12
commit-bot: I haz the power
5 years ago (2015-12-16 15:49:58 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/aeb8073c4a540010bb637d50790018041c5041c8
Cr-Commit-Position: refs/heads/master@{#32909}

Powered by Google App Engine
This is Rietveld 408576698