Hi Andreas,

I just checked with the attached code and git HEAD that X10 fields with
@Volatile annotation were translated to Java fields with volatile keyword.
Could you tell me which version of X10 you are using?

Mikio Takeuchi
IBM Research - Tokyo


2016-02-25 22:26 GMT+09:00 Andreas Zwinkau <zwin...@kit.edu>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Am 07.09.2015 um 16:18 schrieb Vijay Saraswat:
> > I don't remember having seen the rules for the usage of @Volatile
> > spelt out in  the X10 manual. We should.
>
> Just encountered the same problem. Is @Volatile supposed to be the
> Java or the C++ "volatile"?
>
> It seems that the cpp backend insert the volatile keyword for
> @Volatile, so the C++ semantics?
>
> X10:   public @Volatile var x:int;
>
> is compiled into
>
> C++:   volatile x10_int FMGL(x);
> Java:  public int x;
>
> - --
> Andreas Zwinkau
>
>  KIT  IPD Snelting
>  Web: http://pp.ipd.kit.edu/personhp/andreas_zwinkau.php
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iQEcBAEBAgAGBQJWzwDzAAoJEKm3M8a3pi2i8/8H/irQ90Xz/xM3OBf0NZ2jPsIX
> r8anTBDGJlXtGjF8YCJTNB2orhE7sWQ+tCzMXcGPlkVM2xHV5H8mi2IwtdTfGVzr
> S8RL60EjoMAKmLHnWQJLj7QC5dcG1SdG3HqOmQxN0987SzVEm25V+jp1QPck+537
> 1HQS1toLTvSjeKW9WMj8xMhTpeNbgQFijgjbNgLR6FfdDMHWoA0fNDrR8aZefFhv
> Viw3TE8fg2EEEG5p4i0zgdR75VQ1uvwqhHyo5Y0oK34E03XGPMfOzuq7WlAOLBAR
> wLinYvPEo3Rzo++D75BnPDGkVfFbYlcb7J9TRs0CojZDSgnIflTQAZmyTK2/bKY=
> =Mbze
> -----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>

Attachment: VolatileTest.x10
Description: Binary data

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to