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

derbyjs / racer
69%
master: 74%

Build:
Build:
LAST BUILD BRANCH: eventContext-jsdoc-types
DEFAULT BRANCH: master
Repo Added 17 Jul 2019 06:07PM UTC
Files 32
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

LAST BUILD ON BRANCH fix-maybeUnloadDoc
branch: fix-maybeUnloadDoc
CHANGE BRANCH
x
Reset
  • fix-maybeUnloadDoc
  • doc-unload-fix
  • event-listener-tree
  • event-listener-tree-event-listeners-without-paths
  • event-listener-tree-removed-property-on-remove-events
  • eventContext-jsdoc-types
  • eveshum-fix_ERR_INGESTED_SNAPSHOT_HAS_NO_VERSION
  • fix-unfetch-with-pending-ops
  • fix-unload-pass
  • master
  • replace-expectjs-with-chai
  • v0.9.10
  • v0.9.11
  • v0.9.12
  • v0.9.13
  • v0.9.14
  • v0.9.15
  • v0.9.16
  • v0.9.7
  • v0.9.9
  • v1.0.0
  • var-arg-scope

pending completion
898

Pull #279

travis-ci

web-flow
Fix deferred unload (see a320772a) when unfetching then synchronously subscribing

When a doc gets unfetched, #276 adds a Share Doc whenNothingPending listener to unload the doc later, instead of doing nothing, which was the cause of a memory leak introduced in #266.

However, Racer keeps reference counts itself for fetches and subscriptions, so an immediate subscribe on the same Racer doc does not affect the Share doc at all, which means the doc would still get unloaded, erroneously.

This fix instead retries the Racer _maybeUnloadDoc in that scenario, instead of doing an immediate unload. That guards against Racer getting new doc references while the Share Doc whenNotingPending is in progress.
Pull Request #279: Fix deferred unload (see a320772a) when unfetching then synchronously subscribing

776 of 1275 branches covered (60.86%)

Branch coverage included in aggregate %.

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

2291 of 3176 relevant lines covered (72.13%)

186.96 hits per line

Relevant lines Covered
Build:
Build:
3176 RELEVANT LINES 2291 COVERED LINES
186.96 HITS PER LINE
Source Files on fix-maybeUnloadDoc
  • List 0
  • Changed 22
  • Source Changed 1
  • Coverage Changed 22
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
898 fix-maybeUnloadDoc Fix deferred unload (see a320772a) when unfetching then synchronously subscribing When a doc gets unfetched, #276 adds a Share Doc whenNothingPending listener to unload the doc later, instead of doing nothing, which was the cause of a memory leak... Pull #279 25 Mar 2020 08:04PM UTC web-flow travis-ci pending completion  
897 fix-maybeUnloadDoc Fix deferred unload (see a320772a) when unfetching then synchronously subscribing When a doc gets unfetched, #276 adds a Share Doc whenNothingPending listener to unload the doc later, instead of doing nothing, which was the cause of a memory leak... push 25 Mar 2020 08:04PM UTC ericyhwang travis-ci pending completion  
896 fix-maybeUnloadDoc Fix deferred unload (see a320772a) when unfetching then synchronously subscribing When a doc gets unfetched, that adds a Share Doc whenNothingPending listener to unload the doc. However, Racer keeps reference counts itself for subscriptions, so a... Pull #279 25 Mar 2020 08:01PM UTC web-flow travis-ci pending completion  
895 fix-maybeUnloadDoc Fix deferred unload (see a320772a) when unfetching then synchronously subscribing When a doc gets unfetched, that adds a Share Doc whenNothingPending listener to unload the doc. However, Racer keeps reference counts itself for subscriptions, so a... push 25 Mar 2020 07:55PM UTC ericyhwang travis-ci pending completion  
See All Builds (212)
  • Repo on GitHub
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

© 2025 Coveralls, Inc