1 Reply Latest reply: Mar 17, 2009 4:47 PM by 807557 RSS

    AspectJ with real time java

    807557
      Hi
      Does real time java supports aspectJ with Load-time weaving ( LTW ) ? ( compile time weaving )
        • 1. Re: AspectJ with real time java
          807557
          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.

          HTH.

          David Holmes