Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@:volatile not honored by --jvm #10594

Closed
acarioni opened this issue Feb 18, 2022 · 0 comments
Closed

@:volatile not honored by --jvm #10594

acarioni opened this issue Feb 18, 2022 · 0 comments

Comments

@acarioni
Copy link

Environment
macos monterey 12.1
haxe 4.2.4

When code like the following is compiled with the option --jvm, haxe forgets the volatile modifier.

class Main {
  @:volatile var x: Int;
}

The output of javap shows that the volatile modifier is not present:

Compiled from "foo/Main.hx"
public class foo.Main extends haxe.jvm.Object {
  public int x;
  public static void main(java.lang.String[]);
  public static void main();
  public foo.Main(haxe.jvm.EmptyConstructor);
  public java.lang.Object _hx_getField(java.lang.String);
  public void _hx_setField(java.lang.String, java.lang.Object);
}
@Simn Simn closed this as completed in 63d33c9 Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant