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

Issue 182383016: HttpServerProperties - Implement MRU for AlternateProtocolMap. Persist (Closed)

Created:
6 years, 9 months ago by ramant (doing other things)
Modified:
6 years, 9 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman, mmenke, jar (doing other things), wtc
Visibility:
Public.

Description

HttpServerProperties - Implement MRU for AlternateProtocolMap. Persist only the most recently used 200 entries. In memory keep all the entries. BUG=258189 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255323

Patch Set 1 : Persists 200 MRU alternate protocols #

Patch Set 2 : Increment the iterator before calling Erase #

Total comments: 7

Patch Set 3 : Used MRUCache for AlternateProtocolMap. #

Total comments: 7

Patch Set 4 : #

Patch Set 5 : added a todo #

Patch Set 6 : Fix compiler error - use the unused variable. #

Patch Set 7 : Fix android compiler error #

Patch Set 8 : relanding the patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -44 lines) Patch
M chrome/browser/net/http_server_properties_manager.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/net/http_server_properties_manager.cc View 1 2 3 4 5 6 7 9 chunks +21 lines, -10 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_server_properties.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -3 lines 0 comments Download
M net/http/http_server_properties_impl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/http_server_properties_impl.cc View 1 2 3 4 5 6 7 8 chunks +36 lines, -20 lines 0 comments Download
M net/http/http_server_properties_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +59 lines, -2 lines 0 comments Download
M net/http/http_stream_factory_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
ramant (doing other things)
Hi Ryan, Used base::MRUCache instead of std::map for alternate_protocol_map_ in HttpServerPropertiesImpl class. The cache is ...
6 years, 9 months ago (2014-03-04 23:59:21 UTC) #1
ramant (doing other things)
https://codereview.chromium.org/182383016/diff/20001/net/http/http_server_properties_impl.cc File net/http/http_server_properties_impl.cc (right): https://codereview.chromium.org/182383016/diff/20001/net/http/http_server_properties_impl.cc#newcode23 net/http/http_server_properties_impl.cc:23: CachedAlternateProtocolMap::NO_AUTO_EVICT)), rch: Should we keep fewer entries in the ...
6 years, 9 months ago (2014-03-05 00:01:30 UTC) #2
Ryan Hamilton
Ok, so I think I understand what's going on here. The HttpServerProperitesImpl wants to maintain ...
6 years, 9 months ago (2014-03-05 00:19:20 UTC) #3
ramant (doing other things)
>Instead, I wonder if we should just change the definition of >AlternateProtocolMap from map to ...
6 years, 9 months ago (2014-03-05 15:11:10 UTC) #4
Ryan Hamilton
lgtm https://codereview.chromium.org/182383016/diff/40001/net/http/http_server_properties_impl.cc File net/http/http_server_properties_impl.cc (right): https://codereview.chromium.org/182383016/diff/40001/net/http/http_server_properties_impl.cc#newcode22 net/http/http_server_properties_impl.cc:22: : alternate_protocol_map_(AlternateProtocolMap::NO_AUTO_EVICT), With NO_AUTO_EVICT, this means the in-memory ...
6 years, 9 months ago (2014-03-05 17:51:22 UTC) #5
ramant (doing other things)
Thanks very much Ryan for your comments. PTAL. Would like to migrate Spdy* properties to ...
6 years, 9 months ago (2014-03-05 22:43:22 UTC) #6
Ryan Hamilton
lgtm Thanks, Raman. Looks great. LGTM https://codereview.chromium.org/182383016/diff/40001/net/http/http_server_properties_impl.cc File net/http/http_server_properties_impl.cc (right): https://codereview.chromium.org/182383016/diff/40001/net/http/http_server_properties_impl.cc#newcode22 net/http/http_server_properties_impl.cc:22: : alternate_protocol_map_(AlternateProtocolMap::NO_AUTO_EVICT), On ...
6 years, 9 months ago (2014-03-05 23:10:20 UTC) #7
ramant (doing other things)
The CQ bit was checked by rtenneti@chromium.org
6 years, 9 months ago (2014-03-05 23:15:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/182383016/100001
6 years, 9 months ago (2014-03-05 23:17:17 UTC) #9
ramant (doing other things)
The CQ bit was unchecked by rtenneti@chromium.org
6 years, 9 months ago (2014-03-05 23:18:08 UTC) #10
ramant (doing other things)
The CQ bit was checked by rtenneti@chromium.org
6 years, 9 months ago (2014-03-06 00:21:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/182383016/100001
6 years, 9 months ago (2014-03-06 00:25:00 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 00:51:46 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-06 00:51:46 UTC) #14
ramant (doing other things)
The CQ bit was checked by rtenneti@chromium.org
6 years, 9 months ago (2014-03-06 01:07:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/182383016/120001
6 years, 9 months ago (2014-03-06 01:09:21 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 02:06:05 UTC) #17
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=121083
6 years, 9 months ago (2014-03-06 02:06:06 UTC) #18
ramant (doing other things)
The CQ bit was checked by rtenneti@chromium.org
6 years, 9 months ago (2014-03-06 02:27:18 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/182383016/140001
6 years, 9 months ago (2014-03-06 02:28:15 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/182383016/140001
6 years, 9 months ago (2014-03-06 03:10:25 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 04:52:12 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-06 04:52:12 UTC) #23
ramant (doing other things)
The CQ bit was checked by rtenneti@chromium.org
6 years, 9 months ago (2014-03-06 05:47:54 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/182383016/140001
6 years, 9 months ago (2014-03-06 05:50:21 UTC) #25
commit-bot: I haz the power
Change committed as 255323
6 years, 9 months ago (2014-03-06 13:09:08 UTC) #26
rmistry1
6 years, 9 months ago (2014-03-06 13:39:51 UTC) #27
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/188663002/ by rmistry@chromium.org.

The reason for reverting is: Broke compile on a bunch of bots:
Chromium Linux Builder (valgrind)
Chromium OS Builder (valgrind)
Chromium Windows Builder (DrMemory)
Linux Builder (TSan v2)

Log:
http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20Linux%20B...
.

Powered by Google App Engine
This is Rietveld 408576698