What is Java's -XX:+UseMembar parameter

前端 未结 4 669
隐瞒了意图╮
隐瞒了意图╮ 2021-02-13 23:12

I see this parameter in all kinds of places (forums, etc.) and the common answer it help highly concurrent servers. Still, I cannot find an official documentation from sun expla

4条回答
  •  囚心锁ツ
    2021-02-13 23:51

    I don't agree with answer from butterchicken. This page http://www.md.pp.ru/~eu/jdk6options.html says that this flag causes memory barriers to be issued then thread changes it's state (from RUNNABLE to WAITING or to BLOCKED, for example).

提交回复
热议问题