Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29567613: Issue 5572 - reduce the probability of the race condition while updating of preloaded subscriptions

Created:
Oct. 6, 2017, 9:06 a.m. by sergei
Modified:
Nov. 17, 2017, 4:13 p.m.
Reviewers:
anton, diegocarloslima, jens
CC:
René Jeschke
Base URL:
github.com:abby-sergz/libadblockplus-android.git
Visibility:
Public.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M libadblockplus-android/jni/JniFilterEngine.cpp View 2 chunks +5 lines, -1 line 2 comments Download

Messages

Total messages: 6
sergei
Oct. 6, 2017, 9:07 a.m. (2017-10-06 09:07:34 UTC) #1
anton
https://codereview.adblockplus.org/29567613/diff/29567614/libadblockplus-android/jni/JniFilterEngine.cpp File libadblockplus-android/jni/JniFilterEngine.cpp (right): https://codereview.adblockplus.org/29567613/diff/29567614/libadblockplus-android/jni/JniFilterEngine.cpp#newcode502 libadblockplus-android/jni/JniFilterEngine.cpp:502: timer.SetTimer(std::chrono::milliseconds(300), updateSubscriptionFilters); I don't like such timers a lot. ...
Oct. 6, 2017, 10:38 a.m. (2017-10-06 10:38:08 UTC) #2
sergei
https://codereview.adblockplus.org/29567613/diff/29567614/libadblockplus-android/jni/JniFilterEngine.cpp File libadblockplus-android/jni/JniFilterEngine.cpp (right): https://codereview.adblockplus.org/29567613/diff/29567614/libadblockplus-android/jni/JniFilterEngine.cpp#newcode502 libadblockplus-android/jni/JniFilterEngine.cpp:502: timer.SetTimer(std::chrono::milliseconds(300), updateSubscriptionFilters); On 2017/10/06 10:38:08, anton wrote: > I ...
Oct. 6, 2017, 1:37 p.m. (2017-10-06 13:37:04 UTC) #3
anton
On 2017/10/06 13:37:04, sergei wrote: > https://codereview.adblockplus.org/29567613/diff/29567614/libadblockplus-android/jni/JniFilterEngine.cpp > File libadblockplus-android/jni/JniFilterEngine.cpp (right): > > https://codereview.adblockplus.org/29567613/diff/29567614/libadblockplus-android/jni/JniFilterEngine.cpp#newcode502 > ...
Oct. 10, 2017, 6:21 a.m. (2017-10-10 06:21:29 UTC) #4
anton
On 2017/10/10 06:21:29, anton wrote: > On 2017/10/06 13:37:04, sergei wrote: > > > https://codereview.adblockplus.org/29567613/diff/29567614/libadblockplus-android/jni/JniFilterEngine.cpp ...
Nov. 16, 2017, 10:47 a.m. (2017-11-16 10:47:10 UTC) #5
sergei
Nov. 16, 2017, 11:28 a.m. (2017-11-16 11:28:25 UTC) #6
On 2017/11/16 10:47:10, anton wrote:
> On 2017/10/10 06:21:29, anton wrote:
> > On 2017/10/06 13:37:04, sergei wrote:
> > >
> >
>
https://codereview.adblockplus.org/29567613/diff/29567614/libadblockplus-andr...
> > > File libadblockplus-android/jni/JniFilterEngine.cpp (right):
> > > 
> > >
> >
>
https://codereview.adblockplus.org/29567613/diff/29567614/libadblockplus-andr...
> > > libadblockplus-android/jni/JniFilterEngine.cpp:502:
> > > timer.SetTimer(std::chrono::milliseconds(300), updateSubscriptionFilters);
> > > On 2017/10/06 10:38:08, anton wrote:
> > > > I don't like such timers a lot. It's always introduces hard
reproduceable
> > > cases
> > > > and extremely hard to find and fix. Does this
> > > > (https://issues.adblockplus.org/ticket/5572#comment:12) help?
> > > 
> > > As discussed in the issue, it does not help.
> > 
> > Then i'd prefer it to be fixed in proper way, with queue or smth
> 
> any update on this? the bug still remains

No updates. I would propose to land it but don't close the issue. After adding a
support of it in the core this code will be removed.

Powered by Google App Engine
This is Rietveld