src/share/vm/asm/codeBuffer.hpp

changeset 3255
44ce519bc3d1
parent 2708
1d1603768966
child 4037
da91efe96a93
     1.1 --- a/src/share/vm/asm/codeBuffer.hpp	Mon Nov 07 14:33:57 2011 -0800
     1.2 +++ b/src/share/vm/asm/codeBuffer.hpp	Tue Nov 08 10:31:53 2011 -0800
     1.3 @@ -362,10 +362,8 @@
     1.4    // helper for CodeBuffer::expand()
     1.5    void take_over_code_from(CodeBuffer* cs);
     1.6  
     1.7 -#ifdef ASSERT
     1.8    // ensure sections are disjoint, ordered, and contained in the blob
     1.9 -  bool verify_section_allocation();
    1.10 -#endif
    1.11 +  void verify_section_allocation();
    1.12  
    1.13    // copies combined relocations to the blob, returns bytes copied
    1.14    // (if target is null, it is a dry run only, just for sizing)
    1.15 @@ -393,7 +391,7 @@
    1.16      assert(code_start != NULL, "sanity");
    1.17      initialize_misc("static buffer");
    1.18      initialize(code_start, code_size);
    1.19 -    assert(verify_section_allocation(), "initial use of buffer OK");
    1.20 +    verify_section_allocation();
    1.21    }
    1.22  
    1.23    // (2) CodeBuffer referring to pre-allocated CodeBlob.
    1.24 @@ -545,6 +543,9 @@
    1.25  
    1.26    void block_comment(intptr_t offset, const char * comment) PRODUCT_RETURN;
    1.27  
    1.28 +  // Log a little info about section usage in the CodeBuffer
    1.29 +  void log_section_sizes(const char* name);
    1.30 +
    1.31  #ifndef PRODUCT
    1.32   public:
    1.33    // Printing / Decoding

mercurial