src/hotspot/os/windows/perfMemory_windows.cpp
changeset 58084 cddef3bde924
parent 58083 9046db64ca39
child 58679 9c3209ff7550
equal deleted inserted replaced
58083:9046db64ca39 58084:cddef3bde924
   392         // later becomes the expected value.
   392         // later becomes the expected value.
   393         //
   393         //
   394         if (statbuf.st_ctime > latest_ctime) {
   394         if (statbuf.st_ctime > latest_ctime) {
   395           char* user = strchr(dentry->d_name, '_') + 1;
   395           char* user = strchr(dentry->d_name, '_') + 1;
   396 
   396 
   397           if (latest_user != NULL) FREE_C_HEAP_ARRAY(char, latest_user);
   397           FREE_C_HEAP_ARRAY(char, latest_user);
   398           latest_user = NEW_C_HEAP_ARRAY(char, strlen(user)+1, mtInternal);
   398           latest_user = NEW_C_HEAP_ARRAY(char, strlen(user)+1, mtInternal);
   399 
   399 
   400           strcpy(latest_user, user);
   400           strcpy(latest_user, user);
   401           latest_ctime = statbuf.st_ctime;
   401           latest_ctime = statbuf.st_ctime;
   402         }
   402         }