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

The assertion can failure due to race conditions.

Reviewed-by: never
This commit is contained in:
Jon Masamitsu 2008-06-04 13:51:09 -07:00
parent 831ee085f0
commit 39463bb3fc

View file

@ -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() {