src/share/vm/code/debugInfoRec.hpp

changeset 4037
da91efe96a93
parent 2314
f95d63e2154a
child 6876
710a3c8b516e
     1.1 --- a/src/share/vm/code/debugInfoRec.hpp	Fri Aug 31 16:39:35 2012 -0700
     1.2 +++ b/src/share/vm/code/debugInfoRec.hpp	Sat Sep 01 13:25:18 2012 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1998, 2012, 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 @@ -56,8 +56,8 @@
    1.11  //         NB: nodes from create_scope_values and create_locations
    1.12  //             can be reused for simple sharing.
    1.13  //         - mark the end of the scopes (end_safepoint or end_non_safepoint)
    1.14 -//   2) Use oop_size, data_size, pcs_size to create the nmethod and
    1.15 -//      finally migrate the debugging information into the nmethod
    1.16 +//   2) Use oop_size, metadata_size, data_size, pcs_size to create the nmethod
    1.17 +//      and finally migrate the debugging information into the nmethod
    1.18  //      by calling copy_to.
    1.19  
    1.20  class DebugToken; // Opaque datatype for stored:
    1.21 @@ -123,6 +123,7 @@
    1.22    int data_size();
    1.23    int pcs_size();
    1.24    int oop_size() { return oop_recorder()->oop_size(); }
    1.25 +  int metadata_size() { return oop_recorder()->metadata_size(); }
    1.26  
    1.27    // copy the generated debugging information to nmethod
    1.28    void copy_to(nmethod* nm);
    1.29 @@ -193,6 +194,11 @@
    1.30    int  serialize_scope_values(GrowableArray<ScopeValue*>* values);
    1.31    int  find_sharable_decode_offset(int stream_offset);
    1.32  
    1.33 +#ifndef PRODUCT
    1.34 +  bool recorders_frozen();
    1.35 +  void mark_recorders_frozen();
    1.36 +#endif // PRODUCT
    1.37 +
    1.38   public:
    1.39    enum { serialized_null = 0 };
    1.40  };

mercurial