[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] lazyTJP optimization for around advice
|
Yes, lazytjp is implemented for before advice. You mentioned:
> But not for a combination of both before and after advice:
and yet the snippet of decompiled code you showed is a mixture of before and around? lazy tjp instantiation is only deliberately switched off right now if around advice is being used. There was a good reason for this but I honestly don't recall what it was, should be documented in the bugzillas related to implementing the feature originally.
> is there any way to achieve the profiling without
> and stack and without instantiating a JoinPoint?
I know you can't but do it, but using code style aspects will avoid it ...
The problem is that you need to pass in that ProceedingJoinPoint, I can perhaps imagine an optimized form of ProceedingJoinPoint (almost a ProceedingJoinPoint.StaticPart) that you can still proceed on but doesn't need construction through makeJP.
You can switch to a different aspect lifecycle like perthis but that effectively just moves 'stack management' from your code into AspectJ, it doesn't eliminate it.
> Anyhow, it looks like 311749 is not too far off.
I'm afraid the bug doesn't actually have a target which means it isn't on the radar to implement soon. I'll try a test run with it switched on for around advice and see if any failing tests remind me why it isn't allowed.
cheers,
Andy