--- old/src/share/vm/memory/heap.hpp 2016-11-03 14:16:40.000000000 -0700 +++ new/src/share/vm/memory/heap.hpp 2016-11-03 14:16:40.000000000 -0700 @@ -82,7 +82,7 @@ class CodeHeap : public CHeapObj { friend class VMStructs; friend class PregeneratedCodeHeap; - private: + protected: VirtualSpace _memory; // the memory holding the blocks VirtualSpace _segmap; // the memory holding the segment map @@ -156,6 +156,7 @@ virtual bool contains(const void* p) const { return low_boundary() <= p && p < high(); } virtual void* find_start(void* p) const; // returns the block containing p or NULL + virtual CodeBlob* find_blob_unsafe(void* start) const; size_t alignment_unit() const; // alignment of any block size_t alignment_offset() const; // offset of first byte of any block, within the enclosing alignment unit static size_t header_size(); // returns the header size for each heap block