提交 6505e68a 编写于 作者: J jmasa

6629727: assertion in set_trap_state() in methodDataOop.hpp is too strong.

Summary: The assertion can failure due to race conditions.
Reviewed-by: never
上级 95cb611b
...@@ -158,7 +158,6 @@ public: ...@@ -158,7 +158,6 @@ public:
assert(ProfileTraps, "used only under +ProfileTraps"); assert(ProfileTraps, "used only under +ProfileTraps");
uint old_flags = (_header._struct._flags & flag_mask); uint old_flags = (_header._struct._flags & flag_mask);
_header._struct._flags = (new_state << trap_shift) | old_flags; _header._struct._flags = (new_state << trap_shift) | old_flags;
assert(trap_state() == new_state, "sanity");
} }
u1 flags() { u1 flags() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册