-
Notifications
You must be signed in to change notification settings - Fork 67
Implement memory effects of volatiles #263
Comments
What about replacing field access by a couple of synthetic synchronized methods getter/setter and implement it as a programfeature for targets that do not implement volatile in a more performant way? |
To be honest I don't really care about haxe or other targets. (Except maybe C# and c++) So I'd like to ask how you intend to implement |
The most basic primitive is the enter/exit monitor. The idea is to provide those two functions in N native class and use defines to chose the right implementation (when suitable). Javascript for example doesnt require it. But c++ can use it. |
For me not general language, for me need iOs, tvOS, windows native, Android, we spend 6 mouths and after 1 months we will be release... And we can not spend time for non Haxecpp targets, and very very need sync in jtransc. Thanks. |
What do you mean with "tools to target ios and or android native"? |
Yep thats why i want to support haxe target too. Until all that effort is backported we need to support haxe too. But even later i dont see problems supporting haxe too. Libgdx+libs like payments working on those platforms without modified code, providing app icons, one command for deploying... Those things. After implementing these required things + full java8 support i can help with toolchains to get the same experience with pure c++ target which should be supperior in runtime performance, compilation time and executable size. And if we can run original libgdx unmodified that would be even better! But it will take some months to achieve that and Sergey doesnt have that time for his release |
volatile
s have certain memory effects when being read or when being written to.For this we have to use some low-level stuff to implement the needed memory barriers.
See
The text was updated successfully, but these errors were encountered: