< prev index next >

src/hotspot/share/gc/shared/generation.hpp

Print this page

        

*** 154,164 **** // Space inquiries (results in bytes) size_t initial_size(); virtual size_t capacity() const = 0; // The maximum number of object bytes the // generation can currently hold. virtual size_t used() const = 0; // The number of used bytes in the gen. - virtual size_t used_stable() const; // The number of used bytes for memory monitoring tools. virtual size_t free() const = 0; // The number of free bytes in the gen. // Support for java.lang.Runtime.maxMemory(); see CollectedHeap. // Returns the total number of bytes available in a generation // for the allocation of objects. --- 154,163 ----
*** 299,309 **** // "word_sz". If possible, allocate space for "obj", copy obj into it // (taking care to copy "m" into the mark word when done, since the mark // word of "obj" may have been overwritten with a forwarding pointer, and // also taking care to copy the klass pointer *last*. Returns the new // object if successful, or else NULL. ! virtual oop par_promote(int thread_num, oop obj, markWord m, size_t word_sz); // Informs the current generation that all par_promote_alloc's in the // collection have been completed; any supporting data structures can be // reset. Default is to do nothing. virtual void par_promote_alloc_done(int thread_num) {} --- 298,308 ---- // "word_sz". If possible, allocate space for "obj", copy obj into it // (taking care to copy "m" into the mark word when done, since the mark // word of "obj" may have been overwritten with a forwarding pointer, and // also taking care to copy the klass pointer *last*. Returns the new // object if successful, or else NULL. ! virtual oop par_promote(int thread_num, oop obj, markOop m, size_t word_sz); // Informs the current generation that all par_promote_alloc's in the // collection have been completed; any supporting data structures can be // reset. Default is to do nothing. virtual void par_promote_alloc_done(int thread_num) {}
< prev index next >