< prev index next >
src/share/vm/asm/assembler.hpp
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -167,10 +167,18 @@
}
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 union type for code which has to assemble both constant and
// non-constant operands, when the distinction cannot be made
// statically.
< prev index next >