< prev index next >
src/hotspot/share/asm/assembler.hpp
Print this page
rev 50906 : JDK-8206075: Cdd an assertion stmt for Assembler's Label
Check all labels and catch unbound labels. Fix a problem for x86.
*** 157,166 ****
--- 157,170 ----
}
Label() {
init();
}
+
+ ~Label() {
+ assert(is_bound() || is_unused(), "Label was never bound to a location, but it was used as a jmp target");
+ }
};
// A NearLabel must be bound to a location near its users. Users can
// optimize on this information, e.g. generate short branches.
class NearLabel : public Label {
< prev index next >