comparison src/share/vm/memory/sharedHeap.hpp @ 481:7d7a7c599c17

6578152: fill_region_with_object has usability and safety issues Reviewed-by: apetrusenko, ysr
author jcoomes
date Thu, 11 Dec 2008 12:05:08 -0800
parents 37f87013dfd8
children 0fbdb4381b99
comparison
equal deleted inserted replaced
480:d249b360e026 481:7d7a7c599c17
105 105
106 // Initialization of ("weak") reference processing support 106 // Initialization of ("weak") reference processing support
107 virtual void ref_processing_init(); 107 virtual void ref_processing_init();
108 108
109 void set_perm(PermGen* perm_gen) { _perm_gen = perm_gen; } 109 void set_perm(PermGen* perm_gen) { _perm_gen = perm_gen; }
110
111 // A helper function that fills a region of the heap with
112 // with a single object.
113 static void fill_region_with_object(MemRegion mr);
114
115 // Minimum garbage fill object size
116 static size_t min_fill_size() { return (size_t)align_object_size(oopDesc::header_size()); }
117 static size_t min_fill_size_in_bytes() { return min_fill_size() * HeapWordSize; }
118 110
119 // This function returns the "GenRemSet" object that allows us to scan 111 // This function returns the "GenRemSet" object that allows us to scan
120 // generations; at least the perm gen, possibly more in a fully 112 // generations; at least the perm gen, possibly more in a fully
121 // generational heap. 113 // generational heap.
122 GenRemSet* rem_set() { return _rem_set; } 114 GenRemSet* rem_set() { return _rem_set; }