Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] pointcut for synchronized block

For the use cases we investigated, we needed before/after the locking
and unlocking and not 'around' for the entire block - so yes, you
understand it correctly.

Andy.

On 12/07/06, Eric Bodden <eric.bodden@xxxxxxxxxxxxxx> wrote:
Thanks a lot, Ron.

Do I understand correctly, however, that this approach you guys suggest there does not allow one to go *around* a synchronized block? I mean how can you for example skip locking for one given block completely?

Cheers,
Eric

--
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada

________________________________

From: aspectj-users-bounces@xxxxxxxxxxx on behalf of Ron Bodkin
Sent: Wed 12/07/2006 18:25
To: aspectj-users@xxxxxxxxxxx
Subject: RE: [aspectj-users] pointcut for synchronized block



I forgot to include the most important information: see the bugzilla entry
at https://bugs.eclipse.org/bugs/show_bug.cgi?id=123759 with lots of
analysis and design information

-----Original Message-----
From: Ron Bodkin [mailto:rbodkin@xxxxxxxxxxxxxx]
Sent: Wednesday, July 12, 2006 9:12 AM
To: 'aspectj-users@xxxxxxxxxxx'
Subject: RE: [aspectj-users] pointcut for synchronized block

Hi Eric,

Note that there has been some work in the ajc compiler recently to support
synchronization join points: -Xjoinpoints:synchronization although look in
BcelClassWeaver.transformSynchronizedMethod for at least one part of the
work in progress as well as a note by Andy about what's left to do. This was
committed about a month ago.

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Eric Bodden
Sent: Wednesday, July 12, 2006 6:52 AM
To: aspectj-users@xxxxxxxxxxx
Subject: RE: [aspectj-users] pointcut for synchronized block

Hello, Scott.

I just read your posting again... I have somebody who thought about
working on this issue. Obviously, we don't want to reinvent the wheel.
Hence, it would be great if you could briefly comment on whether you
succeeded and if not, what you found to be the major problem. (I know
it's not an easy issue to implement this correctly, especially if you
want around advice.)

Thanks a lot!

Eric

P.S. I tried to email you but your address does not work anymore, hence
the posting to the list.

--
Eric Bodden
Sable Research Group, McGill University
Montreal, Canada

> -----Original Message-----
> From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-
> bounces@xxxxxxxxxxx] On Behalf Of Hale Scott C 1stLt AFIT/ENG
> Sent: Tuesday, July 19, 2005 10:50 AM
> To: aspectj-users@xxxxxxxxxxx
> Subject: [aspectj-users] pointcut for synchronized block
>
> I am developing a pointcut to determine all the locks held at any time
> during the execution of a program.  The pointcut needs to capture the
> current thread and object being locked during a synchronized block.
I
> have yet to determine a unique signature to determine when the code
> contains a synchronized block using Aspects.  Has any one come across
> this problem?  Does any one have any possible suggestions for a
> solution?  I appreciate the help.
>
> Thanks,
>
> Scott
>
>

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top