src/share/vm/gc/cms/compactibleFreeListSpace.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/gc/cms/compactibleFreeListSpace.cpp

src/share/vm/gc/cms/compactibleFreeListSpace.cpp

Print this page

        

*** 2515,2525 **** // small spikes, so some kind of historical smoothing based on // previous experience with the greater reactivity might be useful. // Lacking sufficient experience, CMSOldPLABResizeQuicker is disabled by // default. if (ResizeOldPLAB && CMSOldPLABResizeQuicker) { ! size_t multiple = _num_blocks[word_sz]/(CMSOldPLABToleranceFactor*CMSOldPLABNumRefills*n_blks); n_blks += CMSOldPLABReactivityFactor*multiple*n_blks; n_blks = MIN2(n_blks, CMSOldPLABMax); } assert(n_blks > 0, "Error"); _cfls->par_get_chunk_of_blocks(word_sz, n_blks, fl); --- 2515,2529 ---- // small spikes, so some kind of historical smoothing based on // previous experience with the greater reactivity might be useful. // Lacking sufficient experience, CMSOldPLABResizeQuicker is disabled by // default. if (ResizeOldPLAB && CMSOldPLABResizeQuicker) { ! /* ! * On a 32-bit VM, the denominator can become zero before of integer overflow ! * which is why there is cast to double. ! */ ! size_t multiple = (size_t) (_num_blocks[word_sz]/((double)CMSOldPLABToleranceFactor*CMSOldPLABNumRefills*n_blks)); n_blks += CMSOldPLABReactivityFactor*multiple*n_blks; n_blks = MIN2(n_blks, CMSOldPLABMax); } assert(n_blks > 0, "Error"); _cfls->par_get_chunk_of_blocks(word_sz, n_blks, fl);
src/share/vm/gc/cms/compactibleFreeListSpace.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File