Lines Matching refs:os

56   char* mapAddress = os::reserve_memory(size);
63 if (!os::commit_memory(mapAddress, size, !ExecMem)) {
67 os::release_memory(mapAddress, size);
88 // Note: this function might be called from signal handler (by os::abort()),
154 const char* tmpdir = os::get_temp_directory();
318 const char* tmpdirname = os::get_temp_directory();
320 DIR* tmpdirp = os::opendir(tmpdirname);
332 char* tdbuf = NEW_C_HEAP_ARRAY(char, os::readdir_buf_size(tmpdirname), mtInternal);
334 while ((dentry = os::readdir(tmpdirp, (struct dirent *)tdbuf)) != NULL) {
347 DIR* subdirp = os::opendir(usrdir_name);
362 os::closedir(subdirp);
367 char* udbuf = NEW_C_HEAP_ARRAY(char, os::readdir_buf_size(usrdir_name), mtInternal);
369 while ((udentry = os::readdir(subdirp, (struct dirent *)udbuf)) != NULL) {
412 os::closedir(subdirp);
416 os::closedir(tmpdirp);
500 DIR* dirp = os::opendir(dirname);
521 char* dbuf = NEW_C_HEAP_ARRAY(char, os::readdir_buf_size(dirname), mtInternal);
523 while ((entry = os::readdir(dirp, (struct dirent *)dbuf)) != NULL) {
552 if ((pid == os::current_process_id()) ||
559 os::closedir(dirp);
643 for (size_t seekpos = 0; seekpos < size; seekpos += os::vm_page_size()) {
645 result = (int)os::seek_to_file_offset(fd, (jlong)(seekpos));
709 int vmid = os::current_process_id();
722 assert(((size > 0) && (size % os::vm_page_size() == 0)),
757 // it does not go through os api, the operation has to record from here
766 os::release_memory(addr, bytes);
790 // Don't.. Free heap memory could deadlock os::abort() if it is called
815 ((size_t)statbuf.st_size % os::vm_page_size() != 0)) {
919 // it does not go through os api, the operation has to record from here
1008 if (vmid == 0 || vmid == os::current_process_id()) {