normalize heap names
commit04c72c4d8b3f9c27ccd61d938cdb12f14b24cb04
authorLucian Wischik <ljw@fb.com>
Sat, 29 Feb 2020 19:08:11 +0000 (29 11:08 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 29 Feb 2020 19:11:22 +0000 (29 11:11 -0800)
treeefe2b94ba37757c1e1a353537a967178122112f6
parent2c86c926a4b0559aaace1ac47c4d18c85c7b38c1
normalize heap names

Summary:
We have a lot of heaps! I found it hard, when reviewing their names, to tell at-a-glance which heap corresponded to which subsystem. This diff merely renames a few of shared heaps so they all have a meaningful prefix.

I verified that the description field is only ever used for logging - AI has a couple of "failwith" that mention it, and SharedMem.ml prints it too.

Also, for the compound heap "SharedMem.WithCache" which is composed of (1) NoCache which has sharedmem and stack, (2) LocalCache, I gave LocalCache the name "<description>:cache". That way it'll be easier to distinguish that it's just the local cache of a sharedmem heap; not a proper local cache in its own right.

Reviewed By: arxanas

Differential Revision: D19924994

fbshipit-source-id: c254e4f8547ab06c145e05ca324ee1e9f3aed7f5
14 files changed:
hphp/hack/src/decl/decl_heap.ml
hphp/hack/src/decl/decl_linearize.ml
hphp/hack/src/decl/shallow_classes_heap.ml
hphp/hack/src/heap/sharedMem.ml
hphp/hack/src/naming/naming_heap.ml
hphp/hack/src/providers/ast_provider.ml
hphp/hack/src/providers/file_provider.ml
hphp/hack/src/providers/fixme_provider.ml
hphp/hack/src/typing/typing_classes_heap.ml
hphp/hack/test/ident/test_workers.ml
hphp/hack/test/procs/test_cancel_env.ml
hphp/hack/test/procs/test_cancel_multi_worker.ml
hphp/hack/test/unit/heap/test_removed.ml
hphp/hack/test/unit/heap/test_sharedmem.ml