src/share/vm/asm/assembler.hpp

changeset 9604
da2e98c027fd
parent 6503
a9becfeecd1b
child 9637
eef07cd490d4
     1.1 --- a/src/share/vm/asm/assembler.hpp	Thu Dec 06 13:26:54 2018 -0500
     1.2 +++ b/src/share/vm/asm/assembler.hpp	Thu Dec 20 20:11:38 2018 +0000
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -169,6 +169,14 @@
    1.11    Label() {
    1.12      init();
    1.13    }
    1.14 +
    1.15 +  ~Label() {
    1.16 +    assert(is_bound() || is_unused(), "Label was never bound to a location, but it was used as a jmp target");
    1.17 +  }
    1.18 +
    1.19 +  void reset() {
    1.20 +    init(); //leave _patch_overflow because it points to CodeBuffer.
    1.21 +  }
    1.22  };
    1.23  
    1.24  // A union type for code which has to assemble both constant and

mercurial