Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Garbage collection of aspect instances

Dear AspectJ Users,

Can the experts and/or knowledgeable people please validate these statements below:
1. issingleton aspect instances are gc-ed(*) when the class loader that loaded the aspects is gc-ed.
2. pertypewithin aspect instances are gc-ed when the class loader that loaded the types is gc-ed.
3. perthis and pertarget aspect instances are gc-ed when this (or target) is gc-ed.
4. percflow and percflowbelow aspect instances are gc-ed when the cflow (or cflowbelow) are complete

(*) gc-ed => eligible for garbage collection.

If these statements are generally correct, but are qualified in certain situations, I would be interested to know these situations too.

Thanks,
Balaji


Back to the top