[pulse] skip `folly::SocketAddress::~SocketAddress`

Summary:
The constructor of `folly::SocketAddress` conditionally deletes some
object and then makes that condition false. The destructor then does the
same. Pulse ignores conditionals so will see a double delete.

Just skip that function for now, but it should be easy for pulse to be
more correct here if it knew how to compare constant values.

Reviewed By: mbouaziz

Differential Revision: D16005395

fbshipit-source-id: 036f5091b
master
Jules Villard 6 years ago committed by Facebook Github Bot
parent f15d9915a0
commit 2d41b9d58a

@ -18,6 +18,8 @@ type model = exec_fun
module Misc = struct module Misc = struct
let early_exit : model = fun _ ~ret:_ ~actuals:_ _ -> Ok [] let early_exit : model = fun _ ~ret:_ ~actuals:_ _ -> Ok []
let skip : model = fun _ ~ret:_ ~actuals:_ astate -> Ok [astate]
end end
module C = struct module C = struct
@ -156,15 +158,12 @@ module StdVector = struct
Ok [astate] Ok [astate]
end end
module DelayedDestruction = struct
let destroy : model = fun _ ~ret:_ ~actuals:_ astate -> Ok [astate]
end
module ProcNameDispatcher = struct module ProcNameDispatcher = struct
let dispatch : (unit, model) ProcnameDispatcher.ProcName.dispatcher = let dispatch : (unit, model) ProcnameDispatcher.ProcName.dispatcher =
let open ProcnameDispatcher.ProcName in let open ProcnameDispatcher.ProcName in
make_dispatcher make_dispatcher
[ -"folly" &:: "DelayedDestruction" &:: "destroy" &--> DelayedDestruction.destroy [ -"folly" &:: "DelayedDestruction" &:: "destroy" &--> Misc.skip
; -"folly" &:: "SocketAddress" &:: "~SocketAddress" &--> Misc.skip
; -"std" &:: "function" &:: "operator()" &--> Cplusplus.operator_call ; -"std" &:: "function" &:: "operator()" &--> Cplusplus.operator_call
; -"std" &:: "vector" &:: "assign" &--> StdVector.invalidate_references Assign ; -"std" &:: "vector" &:: "assign" &--> StdVector.invalidate_references Assign
; -"std" &:: "vector" &:: "clear" &--> StdVector.invalidate_references Clear ; -"std" &:: "vector" &:: "clear" &--> StdVector.invalidate_references Clear

Loading…
Cancel
Save