static int Knob_MoveNotifyee = 2; // notify() - disposition of notifyee
static int Knob_QMode = 0; // EntryList-cxq policy - queue discipline
src/hotspot/share/runtime/objectMonitor.cpp包下的这两参数,这是不同操作系统,编译后设置的值不一样嘛,我看notify和notifyAll中有policy = Knob_MoveNotifyee, policy=1,2、3值,走了不同分支,在执行exit方法Knob_QMode =2,3,4等情况也是走了不同分支,想知道这些值,是根据不同操作系统,编译时候会赋值不一样的嘛
Hi dong-g, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Compiler, and any of the maintainers: @Noah , @eastb233 , @guoge , @cf-zhao , @jiangfeilong , @编译小伙 , @周磊 , @wangyadong , @stubCode , @jianhai_feng , @kuen
thank you
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
已wx回复。建议保持Policy策略选择不变。有其他policy的测试结果,可以将测试结果共享下,谢谢
登录 后才可以发表评论