comparison src/share/vm/runtime/sweeper.cpp @ 6197:d2a62e0f25eb

6995781: Native Memory Tracking (Phase 1) 7151532: DCmd for hotspot native memory tracking Summary: Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd Reviewed-by: acorn, coleenp, fparain
author zgu
date Thu, 28 Jun 2012 17:03:16 -0400
parents cfdfbeac0a5b
children 957c266d8bc5 da91efe96a93
comparison
equal deleted inserted replaced
6174:74533f63b116 6197:d2a62e0f25eb
226 return; 226 return;
227 } 227 }
228 #ifdef ASSERT 228 #ifdef ASSERT
229 if (LogSweeper && _records == NULL) { 229 if (LogSweeper && _records == NULL) {
230 // Create the ring buffer for the logging code 230 // Create the ring buffer for the logging code
231 _records = NEW_C_HEAP_ARRAY(SweeperRecord, SweeperLogEntries); 231 _records = NEW_C_HEAP_ARRAY(SweeperRecord, SweeperLogEntries, mtGC);
232 memset(_records, 0, sizeof(SweeperRecord) * SweeperLogEntries); 232 memset(_records, 0, sizeof(SweeperRecord) * SweeperLogEntries);
233 } 233 }
234 #endif 234 #endif
235 if (_invocations > 0) { 235 if (_invocations > 0) {
236 sweep_code_cache(); 236 sweep_code_cache();