| 476 | } |
| 477 | |
| 478 | void appendRecording(const char* target_file, size_t size) { |
| 479 | int append_fd = open(target_file, O_WRONLY); |
| 480 | if (append_fd >= 0) { |
| 481 | lseek(append_fd, 0, SEEK_END); |
| 482 | OS::copyFile(_fd, append_fd, 0, size); |
| 483 | close(append_fd); |
| 484 | } else { |
| 485 | Log::warn("Failed to open JFR recording at %s: %s", target_file, strerror(errno)); |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | Buffer* buffer(int lock_index) { |
| 490 | return &_buf[lock_index]; |
nothing calls this directly
no outgoing calls
no test coverage detected