Skip to Main Content
In wide-enterprise information system, a garbage collector (GC) is a critical memory management process in programming languages such as C++. The programmers need to be aware about memory management and can't be relieved from this task. They have to implement explicitly this task whatever the size of C++ applications. Consequently, this leads to errors and bugs (i.e. dangling pointers, allocation failures, etc.). Therefore, supporting implicit memory management based of aspect-oriented programming can provide a number of benefits such as freeing the programmer of memory management task. We have tackled this problem using aspect-oriented programming to manage implicitly the allocation and release of memory. In this paper, we describe two prototypes of memory management that implement reference counter and mark and sweep techniques. Then we compare them based on the constraints of Detlefs.