Project

General

Profile

Actions

Feature #9935

closed

Get rid of auxilary function duplicates

Added by Evgeny Novikov over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Urgent
Category:
Weaving
Start date:
11/19/2019
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

At the moment Aspectator creates an auxiliary function for each matched join point. Often is is redundant since corresponding generated code is absolutely the same.

You should note that this issue is weakly related with #6486. There it is suggested to get rid of simple auxiliary functions that is quite hard to implement by the way. Here it is suggested to get rid of auxiliary function duplicates.

In addition, I expect that there will be no more numbers at the end of auxiliary function names and auxiliary functions will be always static. This will help to avoid nondeterminism in auxiliary function names and function collisions (sometimes there may be [different!] auxiliary functions with the same names in different source files merged together).


Related issues 2 (1 open1 closed)

Related to C Instrumentation Framework - Feature #6486: Get rid of auxiliary functions if possibleOpenEvgeny Novikov12/26/2015

Actions
Related to C Instrumentation Framework - Bug #10118: CIF generates invalid source files on some Linux 3.14 modulesClosedEvgeny Novikov02/13/2020

Actions
Actions #1

Updated by Evgeny Novikov over 4 years ago

  • Related to Feature #6486: Get rid of auxiliary functions if possible added
Actions #2

Updated by Evgeny Novikov over 4 years ago

  • Status changed from New to Closed

I did everything required in c294294. Please, note that in addition I had to change an auxiliary function prefix from "ldv_" to "cif_" to avoid collisions with Klever model functions.

Actions #3

Updated by Evgeny Novikov about 4 years ago

  • Related to Bug #10118: CIF generates invalid source files on some Linux 3.14 modules added
Actions

Also available in: Atom PDF