1 Reply Latest reply on Mar 17, 2009 9:47 PM by 807557

    AspectJ with real time java

      Does real time java supports aspectJ with Load-time weaving ( LTW ) ? ( compile time weaving )
        • 1. Re: AspectJ with real time java
          Not sure what you mean by "support". AspectJ rewrites bytecodes so the VM will just execute them. You'll probably encounter increased memory usage with load-time weaving as class loading/initialization occurs in Immortal memory. Also load-time weaving won't be compatible with Java RTS's Initialization Time Compilation (ITC) feature ... or at least not the pre-initialization part. It's likely that no-heap threads won't work well running weaved code if there are any references back to heap-allocated AspectJ runtime objects, and similarly (like most libraries) it's not likely to work from scoped memory.


          David Holmes