Page MenuHomePhabricator

"apcu_store()" may raise "GC cache entry ..." errors
Closed, ResolvedPublic

Description

See PHI1711. apcu_store() may raise a notice like this:

apcu_store(): GC cache entry "<some-key-name>" was on gc-list for 3601 seconds

After D21044, these can be user-visible fatals.

In theory, I think this is supposed to indicate a sort of memory leak (an entry should have been GC'd earlier, but was not GC'd by the normal GC). In practice, this condition seems to be routine and unconerning, and APCu decreased its severity at some point, e.g.:

https://github.com/krakjoe/apcu/pull/45

The most practical response seems to be to use @ to silence the notice.

Revisions and Commits

Restricted Differential Revision
Restricted Differential Revision

Event Timeline

epriestley created this task.
epriestley added a revision: Restricted Differential Revision.Apr 28 2020, 10:56 AM
epriestley closed this task as Resolved by committing Restricted Diffusion Commit.Apr 28 2020, 11:13 AM
epriestley added a commit: Restricted Diffusion Commit.
epriestley added a commit: Restricted Diffusion Commit.