From 0c833438dadeeb26659cd901870d18d2c103658b Mon Sep 17 00:00:00 2001 From: jhugunin Date: Sat, 24 Jan 2004 02:28:54 +0000 Subject: Implemented feature for Bugzilla Bug 48091 Lazy instantiation of thisJoinPoint Speed-ups of 10-100X are measured even when running a small test case with minimal GC issues. The actual feature implemented is that thisJoinPoint objects are only created just before calling the method for advice that requires them. To take advantage of this feature you must use an if PCD or some other dynamic test that occurs in the PCD not the advice body to guard the expensive creation of the thisJoinPoint object. -XlazyTjp flag must be passed to compiler to enable this feature. If any around advice is present on the joinpoint then lazy instantiation will be disabled. An Xlint warning will be displayed in this case. As a related optimization, several helper methods were added to Factory.makeJP to reduce the code size when thisJoinPoint is used. --- lib/test/aspectjrt.jar | Bin 29632 -> 30265 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'lib/test') diff --git a/lib/test/aspectjrt.jar b/lib/test/aspectjrt.jar index 7e4e30f0f..7254363af 100644 Binary files a/lib/test/aspectjrt.jar and b/lib/test/aspectjrt.jar differ -- cgit v1.2.3