equal
deleted
inserted
replaced
2811 if (!UseOprofile) { |
2811 if (!UseOprofile) { |
2812 return; |
2812 return; |
2813 } |
2813 } |
2814 |
2814 |
2815 char buf[PATH_MAX+1]; |
2815 char buf[PATH_MAX+1]; |
2816 int num = Atomic::add(1, &cnt); |
2816 int num = Atomic::add(&cnt, 1); |
2817 |
2817 |
2818 snprintf(buf, sizeof(buf), "%s/hs-vm-%d-%d", |
2818 snprintf(buf, sizeof(buf), "%s/hs-vm-%d-%d", |
2819 os::get_temp_directory(), os::current_process_id(), num); |
2819 os::get_temp_directory(), os::current_process_id(), num); |
2820 unlink(buf); |
2820 unlink(buf); |
2821 |
2821 |