Lines Matching refs:os
58 char* mapAddress = os::reserve_memory(size);
65 if (!os::commit_memory(mapAddress, size, !ExecMem)) {
69 os::release_memory(mapAddress, size);
90 // Note: this function might be called from signal handler (by os::abort()),
156 const char* tmpdir = os::get_temp_directory();
309 const char* tmpdirname = os::get_temp_directory();
311 DIR* tmpdirp = os::opendir(tmpdirname);
323 char* tdbuf = NEW_C_HEAP_ARRAY(char, os::readdir_buf_size(tmpdirname), mtInternal);
325 while ((dentry = os::readdir(tmpdirp, (struct dirent *)tdbuf)) != NULL) {
338 DIR* subdirp = os::opendir(usrdir_name);
353 os::closedir(subdirp);
358 char* udbuf = NEW_C_HEAP_ARRAY(char, os::readdir_buf_size(usrdir_name), mtInternal);
360 while ((udentry = os::readdir(subdirp, (struct dirent *)udbuf)) != NULL) {
403 os::closedir(subdirp);
407 os::closedir(tmpdirp);
537 DIR* dirp = os::opendir(dirname);
558 char* dbuf = NEW_C_HEAP_ARRAY(char, os::readdir_buf_size(dirname), mtInternal);
560 while ((entry = os::readdir(dirp, (struct dirent *)dbuf)) != NULL) {
589 if ((pid == os::current_process_id()) ||
596 os::closedir(dirp);
724 int vmid = os::current_process_id();
737 assert(((size > 0) && (size % os::vm_page_size() == 0)),
772 // it does not go through os api, the operation has to record from here
781 os::release_memory(addr, bytes);
805 // Don't.. Free heap memory could deadlock os::abort() if it is called
830 ((size_t)statbuf.st_size % os::vm_page_size() != 0)) {
934 // it does not go through os api, the operation has to record from here
1023 if (vmid == 0 || vmid == os::current_process_id()) {