Use AtomicVector for Func hotness profiling
commite55c7bec257c1d69c91a98af1d12b92ddc63ec1e
authorBrett Simmers <bsimmers@fb.com>
Tue, 19 Jan 2016 23:52:47 +0000 (19 15:52 -0800)
committerhhvm-bot <hhvm-bot@fb.com>
Wed, 20 Jan 2016 00:00:47 +0000 (19 16:00 -0800)
treeac6e5c869efb5e07fe6c9c4ace93b6265eb4a778
parente16a92e4c44c009791a1e8b15b9a785710dbba6c
Use AtomicVector for Func hotness profiling

Summary:
tbb::concurrent_hash_map is all sorts of bad news under heavy
load. The keys in this one are just Func ids so use a vector instead.

Reviewed By: alexmalyshev

Differential Revision: D2837328

fb-gh-sync-id: 70eb59d6cccc9e93231f5bea011929da5e44b53f
hphp/runtime/vm/func.cpp
hphp/runtime/vm/type-profile.cpp
hphp/util/atomic-vector.h