Skip to content

Commit 53984b8

Browse files
Joseph Griegofacebook-github-bot
authored andcommitted
Install arrprov guard in type deserialization
Summary: Prof data serialization includes types which can include array specializations, which can carry provenance tags. We already handle the tag by virtue of using internal serialization. Just install the guard to quiet the arrprov diagnostics. Reviewed By: billf Differential Revision: D20290707 fbshipit-source-id: f50fd5c9e6f06b5ed0fe0ffa3e6e95f7affc21d1
1 parent 050ec90 commit 53984b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hphp/runtime/vm/jit/prof-data-serialize.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,7 @@ ArrayData* read_array(ProfDataDeserializer& ser) {
12081208
return deserialize(
12091209
ser,
12101210
[&] () -> ArrayData* {
1211+
ARRPROV_USE_RUNTIME_LOCATION();
12111212
auto const sz = read_raw<uint32_t>(ser);
12121213
String s{sz, ReserveStringMode{}};
12131214
auto const range = s.bufferSlice();

0 commit comments

Comments
 (0)