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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/SQLTransactionCoordinator.h

Issue 1909813002: Enable per thread heap for database thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webdatabase/SQLTransactionCoordinator.h
diff --git a/third_party/WebKit/Source/modules/webdatabase/SQLTransactionCoordinator.h b/third_party/WebKit/Source/modules/webdatabase/SQLTransactionCoordinator.h
index 0d886469f49f50a1be88a895bd9bec2eee083e31..619a734f9ce0a88f29c908cadeed803bddebbab9 100644
--- a/third_party/WebKit/Source/modules/webdatabase/SQLTransactionCoordinator.h
+++ b/third_party/WebKit/Source/modules/webdatabase/SQLTransactionCoordinator.h
@@ -42,7 +42,7 @@ namespace blink {
class SQLTransactionBackend;
-class SQLTransactionCoordinator : public GarbageCollected<SQLTransactionCoordinator> {
+class SQLTransactionCoordinator : public GarbageCollectedFinalized<SQLTransactionCoordinator> {
WTF_MAKE_NONCOPYABLE(SQLTransactionCoordinator);
public:
SQLTransactionCoordinator();
@@ -52,23 +52,16 @@ public:
void shutdown();
private:
- typedef HeapDeque<Member<SQLTransactionBackend>> TransactionsQueue;
+ typedef Deque<CrossThreadPersistent<SQLTransactionBackend>> TransactionsQueue;
struct CoordinationInfo {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
public:
TransactionsQueue pendingTransactions;
- HeapHashSet<Member<SQLTransactionBackend>> activeReadTransactions;
- Member<SQLTransactionBackend> activeWriteTransaction;
-
- DEFINE_INLINE_TRACE()
- {
- visitor->trace(pendingTransactions);
- visitor->trace(activeReadTransactions);
- visitor->trace(activeWriteTransaction);
- }
+ HashSet<CrossThreadPersistent<SQLTransactionBackend>> activeReadTransactions;
+ CrossThreadPersistent<SQLTransactionBackend> activeWriteTransaction;
};
// Maps database names to information about pending transactions
- typedef HeapHashMap<String, CoordinationInfo> CoordinationInfoHeapMap;
+ typedef HashMap<String, CoordinationInfo> CoordinationInfoHeapMap;
CoordinationInfoHeapMap m_coordinationInfoMap;
bool m_isShuttingDown;

Powered by Google App Engine
This is Rietveld 408576698