< prev index next >
src/hotspot/share/asm/assembler.hpp
Print this page
*** 157,166 ****
--- 157,174 ----
}
Label() {
init();
}
+
+ ~Label() {
+ assert(is_bound() || is_unused(), "Label was never bound to a location, but it was used as a jmp target");
+ }
+
+ void reset() {
+ init(); //leave _patch_overflow because it points to CodeBuffer.
+ }
};
// 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 >