Seprate the concept of @PerformanceCritical from the concept of @NoAllocation

Summary:public
This give more freedom to use the tools, especially in the open-source context.

Reviewed By: cristianoc

Differential Revision: D3061192

fb-gh-sync-id: 0e0d4ed
shipit-source-id: 0e0d4ed
master
jrm 9 years ago committed by Facebook Github Bot 1
parent 66d865ff6a
commit 0b56374b11

@ -9,10 +9,6 @@
module L = Logging
let performance_critical_implies_no_allocation = true
(* Warning name when a performance critical method directly or indirectly
calls a method annotatd as expensive *)
let calls_expensive_method =
@ -65,9 +61,7 @@ let method_is_performance_critical pname =
let method_is_no_allcation pname =
(performance_critical_implies_no_allocation
&& method_is_performance_critical pname)
|| check_method Annotations.ia_is_no_allocation pname
check_method Annotations.ia_is_no_allocation pname
let method_overrides is_annotated tenv pname =

Loading…
Cancel
Save