• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

grpc / grpc-java / 14673
89%

Build:
DEFAULT BRANCH: master
Ran 17 Jul 2019 08:24AM UTC
Jobs 1
Files 261
Run time 14s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
14673

push

travis-ci

web-flow
context:  fix race between CancellableContext and Context

The `pendingDeadline` variable is modified from the ctor of CancellableContext, but it isn't final.  The cancellation can happen before the variable is assigned.  It's generally bad practice to leak the this reference from the ctor to other threads anyways.

This code refactors the deadline calculation and scheduling so that `pendingDeadline` is modified under the lock, and the `this` reference is not exposed.

Discovered by TSAN.

22 of 22 new or added lines in 1 file covered. (100.0%)

15143 of 17351 relevant lines covered (87.27%)

0.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 14673.1 17 Jul 2019 08:24AM UTC 0
87.27
Travis Job 14673.1
Source Files on build 14673
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #14673
  • 8a9afd61 on github
  • Prev Build on master (#14666)
  • Next Build on master (#14687)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc