comparison src/os/linux/vm/os_linux.cpp @ 1500:3fca8e9cd36a

Merge
author dcubed
date Wed, 05 May 2010 16:39:47 -0700
parents f03d0a26bf83 96d554193f72
children 79bf863697eb
comparison
equal deleted inserted replaced
1491:befdf73d6b82 1500:3fca8e9cd36a
2303 2303
2304 if (!UseOprofile) { 2304 if (!UseOprofile) {
2305 return; 2305 return;
2306 } 2306 }
2307 2307
2308 char buf[40]; 2308 char buf[PATH_MAX+1];
2309 int num = Atomic::add(1, &cnt); 2309 int num = Atomic::add(1, &cnt);
2310 2310
2311 snprintf(buf, sizeof(buf), "%s/hs-vm-%d-%d", 2311 snprintf(buf, sizeof(buf), "%s/hs-vm-%d-%d",
2312 os::get_temp_directory(), os::current_process_id(), num); 2312 os::get_temp_directory(), os::current_process_id(), num);
2313 unlink(buf); 2313 unlink(buf);