Skip to content

Commit

Permalink
Revert "improve replacements with fcalls backend"
Browse files Browse the repository at this point in the history
This reverts commit cb1cdb5.

This commit actually worsen performance. There is no shared allocator
anyways in the context of fcalls.
  • Loading branch information
hlef committed Nov 30, 2021
1 parent cb1cdb5 commit f26fbca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 48 deletions.
5 changes: 1 addition & 4 deletions kraft/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,10 +885,7 @@ def cb_gen_rule(dest_name, dest_comp):
gr_rule += gr_gen_rule("lname", default_comp)

# add malloc/free/calloc replacement rule
if FCALLS_enabled:
gr_rule += get_sec_rule("mallocreplacer_fcalls.cocci")
else:
gr_rule += get_sec_rule("mallocreplacer.cocci")
gr_rule += get_sec_rule("mallocreplacer.cocci")

# add heap local vars replacement rule
if FCALLS_enabled:
Expand Down
44 changes: 0 additions & 44 deletions kraft/sec/rules/mallocreplacer_fcalls.cocci

This file was deleted.

0 comments on commit f26fbca

Please sign in to comment.