WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
176249
NetworkProcess Cache and Caches should be cleared when the last related WebProcess Cache or CacheStorage is destroyed
https://bugs.webkit.org/show_bug.cgi?id=176249
Summary
NetworkProcess Cache and Caches should be cleared when the last related WebPr...
youenn fablet
Reported
2017-09-01 15:38:11 PDT
This will allow getting rid of removed caches as early as possible. This will also allow cleaning no longer used caches to optimize memory usage.
Attachments
Patch
(42.48 KB, patch)
2017-09-01 17:25 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews123 for ios-simulator-wk2
(1.47 MB, application/zip)
2017-09-01 18:43 PDT
,
Build Bot
no flags
Details
Patch
(42.59 KB, patch)
2017-09-05 14:33 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews123 for ios-simulator-wk2
(1.29 MB, application/zip)
2017-09-05 16:12 PDT
,
Build Bot
no flags
Details
Patch
(43.31 KB, patch)
2017-09-06 13:12 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(41.98 KB, patch)
2017-09-06 16:20 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2017-09-01 17:25:51 PDT
Created
attachment 319675
[details]
Patch
Build Bot
Comment 2
2017-09-01 17:27:05 PDT
Attachment 319675
[details]
did not pass style-queue: ERROR: Source/WebCore/Modules/cache/WorkerCacheStorageConnection.h:49: More than one command on the same line [whitespace/newline] [4] ERROR: Source/WebKit/NetworkProcess/cache/CacheStorageEngineCaches.cpp:164: More than one command on the same line [whitespace/newline] [4] ERROR: Source/WebKit/NetworkProcess/cache/CacheStorageEngineCaches.cpp:169: More than one command on the same line [whitespace/newline] [4] Total errors found: 3 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 3
2017-09-01 18:43:31 PDT
Comment on
attachment 319675
[details]
Patch
Attachment 319675
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/4430218
New failing tests: http/tests/cache-storage/cache-representation.https.html
Build Bot
Comment 4
2017-09-01 18:43:33 PDT
Created
attachment 319685
[details]
Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
youenn fablet
Comment 5
2017-09-05 14:33:19 PDT
Created
attachment 319936
[details]
Patch
Build Bot
Comment 6
2017-09-05 14:36:06 PDT
Attachment 319936
[details]
did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/cache/CacheStorageEngineCaches.cpp:164: More than one command on the same line [whitespace/newline] [4] ERROR: Source/WebKit/NetworkProcess/cache/CacheStorageEngineCaches.cpp:169: More than one command on the same line [whitespace/newline] [4] Total errors found: 2 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 7
2017-09-05 16:12:46 PDT
Comment on
attachment 319936
[details]
Patch
Attachment 319936
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/4456648
New failing tests: http/tests/cache-storage/cache-representation.https.html
Build Bot
Comment 8
2017-09-05 16:12:47 PDT
Created
attachment 319950
[details]
Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
youenn fablet
Comment 9
2017-09-06 13:12:51 PDT
Created
attachment 320055
[details]
Patch
Build Bot
Comment 10
2017-09-06 13:15:19 PDT
Attachment 320055
[details]
did not pass style-queue: ERROR: Source/WebKit/NetworkProcess/cache/CacheStorageEngineCaches.cpp:164: More than one command on the same line [whitespace/newline] [4] ERROR: Source/WebKit/NetworkProcess/cache/CacheStorageEngineCaches.cpp:169: More than one command on the same line [whitespace/newline] [4] Total errors found: 2 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alex Christensen
Comment 11
2017-09-06 13:43:32 PDT
Comment on
attachment 320055
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=320055&action=review
> Source/WebKit/NetworkProcess/cache/CacheStorageEngineConnection.h:68 > + HashMap<PAL::SessionID, HashMap<uint64_t, uint64_t>> m_cachesReferences;
m_cacheReferences? Also, could you typedef the uint64_t's so we can read what is going on here?
youenn fablet
Comment 12
2017-09-06 16:17:32 PDT
Thanks for the review. (In reply to Alex Christensen from
comment #11
)
> Comment on
attachment 320055
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=320055&action=review
> > > Source/WebKit/NetworkProcess/cache/CacheStorageEngineConnection.h:68 > > + HashMap<PAL::SessionID, HashMap<uint64_t, uint64_t>> m_cachesReferences; > > m_cacheReferences? > Also, could you typedef the uint64_t's so we can read what is going on here?
Let's rename to m_cachesLocks and add two uint64_t aliases CacheIdentifier and LockCount.
youenn fablet
Comment 13
2017-09-06 16:20:10 PDT
Created
attachment 320073
[details]
Patch for landing
WebKit Commit Bot
Comment 14
2017-09-06 17:03:17 PDT
Comment on
attachment 320073
[details]
Patch for landing Clearing flags on attachment: 320073 Committed
r221710
: <
http://trac.webkit.org/changeset/221710
>
WebKit Commit Bot
Comment 15
2017-09-06 17:03:18 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 16
2017-09-27 12:44:28 PDT
<
rdar://problem/34693867
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug