--- old/src/hotspot/share/asm/assembler.hpp 2018-07-02 23:50:47.061044531 +0000 +++ new/src/hotspot/share/asm/assembler.hpp 2018-07-02 23:50:46.911052150 +0000 @@ -159,6 +159,10 @@ 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