< prev index next >

src/hotspot/os/windows/os_perf_windows.cpp

Print this page
*** 223,13 ***
    assert(process_query != NULL, "invariant");
    return allocate_counters(&process_query->set, nofCounters);
  }
  
  static void deallocate_counters(MultiCounterQueryP query) {
!     FREE_C_HEAP_ARRAY(char, query->counters);
!     query->counters = NULL;
!     query->noOfCounters = 0;
  }
  
  static OSReturn add_counter(UpdateQueryP query, HCOUNTER* counter, const char* path, bool first_sample_on_init) {
    assert(query != NULL, "invariant");
    assert(counter != NULL, "invariant");
--- 223,13 ---
    assert(process_query != NULL, "invariant");
    return allocate_counters(&process_query->set, nofCounters);
  }
  
  static void deallocate_counters(MultiCounterQueryP query) {
!   FREE_C_HEAP_ARRAY(char, query->counters);
!   query->counters = NULL;
!   query->noOfCounters = 0;
  }
  
  static OSReturn add_counter(UpdateQueryP query, HCOUNTER* counter, const char* path, bool first_sample_on_init) {
    assert(query != NULL, "invariant");
    assert(counter != NULL, "invariant");
< prev index next >