< prev index next >

src/share/vm/code/codeBlob.hpp

Print this page

        

*** 28,37 **** --- 28,46 ---- #include "asm/codeBuffer.hpp" #include "compiler/oopMap.hpp" #include "runtime/frame.hpp" #include "runtime/handles.hpp" + // CodeBlob Types + // Used in the CodeCache to assign CodeBlobs to different CodeHeaps + struct CodeBlobType { + enum { + All = 0, // All types (No code cache segmentation) + NumTypes = 1 // Number of CodeBlobTypes + }; + }; + // CodeBlob - superclass for all entries in the CodeCache. // // Suptypes are: // nmethod : Compiled Java methods (include method that calls to native code) // RuntimeStub : Call to VM runtime methods
*** 69,78 **** --- 78,88 ---- CodeStrings _strings; public: // Returns the space needed for CodeBlob static unsigned int allocation_size(CodeBuffer* cb, int header_size); + static unsigned int align_code_offset(int offset); // Creation // a) simple CodeBlob // frame_complete is the offset from the beginning of the instructions // to where the frame setup (from stackwalk viewpoint) is complete.
*** 203,212 **** --- 213,223 ---- class BufferBlob: public CodeBlob { friend class VMStructs; friend class AdapterBlob; friend class VtableBlob; friend class MethodHandlesAdapterBlob; + friend class WhiteBox; private: // Creation support BufferBlob(const char* name, int size); BufferBlob(const char* name, int size, CodeBuffer* cb);
< prev index next >