< prev index next >

src/share/vm/memory/referenceProcessor.cpp

Print this page
rev 7793 : 8073315: Enable gcc -Wtype-limits and fix upcoming issues.

*** 985,995 **** // fashion to each of the lists. if (_processing_is_mt) { id = next_id(); } } ! assert(0 <= id && id < _max_num_q, "Id is out-of-bounds (call Freud?)"); // Get the discovered queue to which we will add DiscoveredList* list = NULL; switch (rt) { case REF_OTHER: --- 985,995 ---- // fashion to each of the lists. if (_processing_is_mt) { id = next_id(); } } ! assert(id < _max_num_q, "Id is out-of-bounds (call Freud?)"); // Get the discovered queue to which we will add DiscoveredList* list = NULL; switch (rt) { case REF_OTHER:
*** 1343,1353 **** } ) } const char* ReferenceProcessor::list_name(uint i) { ! assert(i >= 0 && i <= _max_num_q * number_of_subclasses_of_ref(), "Out of bounds index"); int j = i / _max_num_q; switch (j) { case 0: return "SoftRef"; --- 1343,1353 ---- } ) } const char* ReferenceProcessor::list_name(uint i) { ! assert(i <= _max_num_q * number_of_subclasses_of_ref(), "Out of bounds index"); int j = i / _max_num_q; switch (j) { case 0: return "SoftRef";
< prev index next >