[llvm-dev] Managed Languages BOF @ Dev Meeting

Joachim Durchholz via llvm-dev llvm-dev at lists.llvm.org
Mon Oct 19 03:46:12 PDT 2015


Am 19.10.2015 um 11:53 schrieb David Chisnall via llvm-dev:
> Yes, that would probably be the trickiest part of this. Note that
> this is also somewhat language dependent. If the source language does
> not define ordering of memory operations, then reordering them would
> be fine. I’m definitely not sufficiently familiar with the Java spec
> to say exactly when this would or wouldn’t be permitted - I think
> Java is a lot stricter than C/C++ with respect to evaluation order.

Actually Java is relatively relaxed in general, but some language 
constructs impose strict guarantees.

See https://www.cs.umd.edu/~pugh/java/memoryModel/jsr-133-faq.html for 
the programmer perspective, and 
http://gee.cs.oswego.edu/dl/jmm/cookbook.html for the implementer 
perspective.


More information about the llvm-dev mailing list