-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress HAC ref-bind notices when setting up fb_intercept
Summary: It's doing an `appendRef` but the array isn't leaking anywhere, it's just being used in `invokeFunc`. The argument array (which gets created with `appendWithRef` does leak to the function doing an intercept but only contains refs when intercepting a function that's already pass-by-ref. Reviewed By: ricklavoie Differential Revision: D14961879 fbshipit-source-id: e236bdf60d55859bc528a95e15d591351cc8581d
- Loading branch information
Showing
5 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?hh | ||
|
||
<<__NEVER_INLINE>> | ||
function foo() {} | ||
|
||
function intercept($n) { var_dump($n); } | ||
|
||
<<__EntryPoint>> | ||
function main() { | ||
fb_intercept('foo', 'intercept'); | ||
foo(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
string(3) "foo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-vJitEnableRenameFunction=1 -vHackArrCompatNotices=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-vEval.HackArrCompatNotices=1 -vEval.HackArrCompatCheckRefBind=1 |