We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
按照代码,很难触发线程可见性问题,但是如果改为
public void run() { while (!ready) { count++; } if (ready) { System.out.println("---> 结束啦"); } } public void cancel() { ready = true; System.out.println("cancel.."); }
这样任务就不能停止了,然后-server 加不加都一样。应该是混合编译的问题吧。是不是原代码加了 Tools.randomPause,导致jit失效?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
按照代码,很难触发线程可见性问题,但是如果改为
这样任务就不能停止了,然后-server 加不加都一样。应该是混合编译的问题吧。是不是原代码加了 Tools.randomPause,导致jit失效?
The text was updated successfully, but these errors were encountered: