-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

My program contained a deadlock, which went like this:

public class Test {
        public static def main(args:Array[String]) {
                val lock = new Cell[Boolean](false);
                async {
                        throw new Exception("Foo");
                        atomic lock() = true;
                }
                async {
                        when (lock()) ;
                }
        }
}

There are two activities, such that one is blocked by the other. Now
before the other activity releases the block it throws an exception. The
thrown exception bubbles up the stack, where it is stored to be put into
a MultipleException container. The program deadlocks without any output.

It would have been helpful, if the program would have printed the
Exception right when it is stored. Of course this cannot be default
behavior, but a compiler switch would be nice.

- -- 
Andreas Zwinkau

 Karlsruhe Institute of Technology (KIT)
 Institut für Programmstrukturen und Datenorganisation (IPD)
 Lehrstuhl Prof. Snelting
 Adenauerring 20a
 76131 Karlsruhe

 Phone:  +49 721 608 48351
 Fax:    +49 721 608 48457
 Email:  zwin...@kit.edu
 Web:    http://pp.info.uni-karlsruhe.de/person.php?id=107

 KIT – University of the State of Baden-Wuerttemberg and
 National Research Center of the Helmholtz Association
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPvOZLAAoJEKm3M8a3pi2i0WwH/iaH8uJt06Lm8bByM+opYHwq
qelHKDwKMO/QK4X+7ZxeX3yxeu6sSkZAqcTs87CQa/15opfvXNrRVWPlV+hJwjyi
JIpy2CLI0Z3Dd9znAwnFQwUCUrzW8J4rYGQEZeA+0DOVk9jJH9LSqUezQoqchwJq
6Z8bGleTIe6XWgaEQVWtXtJW+uMi2NMaTG7LZQtkrXf5KM1sc6eCzpzFxWd5eB6a
fWB6PtHF0RFeZnebehYS2DqTHa+aHxP0Hcn3RcMN5ZEcDDY6Ly25lUqXd2N+11cB
RZliYMtpH8rM3RCARQ31bYk0rpr09YdZ6kYI4gHghJz5eIjtOZzIPB4oU/5kJio=
=EmnB
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to