src/share/vm/oops/cpCache.hpp

changeset 4562
8d9fc28831cc
parent 4253
64672b22ef05
child 4712
3efdfd6ddbf2
     1.1 --- a/src/share/vm/oops/cpCache.hpp	Tue Feb 05 00:59:40 2013 -0800
     1.2 +++ b/src/share/vm/oops/cpCache.hpp	Wed Feb 06 14:31:37 2013 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1998, 2013, 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 @@ -337,16 +337,18 @@
    1.11    static ByteSize f2_offset()                    { return byte_offset_of(ConstantPoolCacheEntry, _f2); }
    1.12    static ByteSize flags_offset()                 { return byte_offset_of(ConstantPoolCacheEntry, _flags); }
    1.13  
    1.14 +#if INCLUDE_JVMTI
    1.15    // RedefineClasses() API support:
    1.16 -  // If this constantPoolCacheEntry refers to old_method then update it
    1.17 +  // If this ConstantPoolCacheEntry refers to old_method then update it
    1.18    // to refer to new_method.
    1.19    // trace_name_printed is set to true if the current call has
    1.20    // printed the klass name so that other routines in the adjust_*
    1.21    // group don't print the klass name.
    1.22    bool adjust_method_entry(Method* old_method, Method* new_method,
    1.23           bool * trace_name_printed);
    1.24 -  NOT_PRODUCT(bool check_no_old_entries();)
    1.25 +  bool check_no_old_or_obsolete_entries();
    1.26    bool is_interesting_method_entry(Klass* k);
    1.27 +#endif // INCLUDE_JVMTI
    1.28  
    1.29    // Debugging & Printing
    1.30    void print (outputStream* st, int index) const;
    1.31 @@ -423,15 +425,18 @@
    1.32      return (base_offset() + ConstantPoolCacheEntry::size_in_bytes() * index);
    1.33    }
    1.34  
    1.35 +#if INCLUDE_JVMTI
    1.36    // RedefineClasses() API support:
    1.37 -  // If any entry of this constantPoolCache points to any of
    1.38 +  // If any entry of this ConstantPoolCache points to any of
    1.39    // old_methods, replace it with the corresponding new_method.
    1.40    // trace_name_printed is set to true if the current call has
    1.41    // printed the klass name so that other routines in the adjust_*
    1.42    // group don't print the klass name.
    1.43    void adjust_method_entries(Method** old_methods, Method** new_methods,
    1.44                               int methods_length, bool * trace_name_printed);
    1.45 -  NOT_PRODUCT(bool check_no_old_entries();)
    1.46 +  bool check_no_old_or_obsolete_entries();
    1.47 +  void dump_cache();
    1.48 +#endif // INCLUDE_JVMTI
    1.49  
    1.50    // Deallocate - no fields to deallocate
    1.51    DEBUG_ONLY(bool on_stack() { return false; })

mercurial