4656 *p = '\0';
4657 }
4658
4659 // check xawt/libmawt.so
4660 strcpy(libmawtpath, buf);
4661 strcat(libmawtpath, xawtstr);
4662 if (::stat(libmawtpath, &statbuf) == 0) return false;
4663
4664 // check libawt_xawt.so
4665 strcpy(libmawtpath, buf);
4666 strcat(libmawtpath, new_xawtstr);
4667 if (::stat(libmawtpath, &statbuf) == 0) return false;
4668
4669 return true;
4670 #endif
4671 }
4672
4673 // Get the default path to the core file
4674 // Returns the length of the string
4675 int os::get_core_path(char* buffer, size_t bufferSize) {
4676 int n = jio_snprintf(buffer, bufferSize, "/cores");
4677
4678 // Truncate if theoretical string was longer than bufferSize
4679 n = MIN2(n, (int)bufferSize);
4680
4681 return n;
4682 }
4683
4684 #ifndef PRODUCT
4685 void TestReserveMemorySpecial_test() {
4686 // No tests available for this platform
4687 }
4688 #endif
|
4656 *p = '\0';
4657 }
4658
4659 // check xawt/libmawt.so
4660 strcpy(libmawtpath, buf);
4661 strcat(libmawtpath, xawtstr);
4662 if (::stat(libmawtpath, &statbuf) == 0) return false;
4663
4664 // check libawt_xawt.so
4665 strcpy(libmawtpath, buf);
4666 strcat(libmawtpath, new_xawtstr);
4667 if (::stat(libmawtpath, &statbuf) == 0) return false;
4668
4669 return true;
4670 #endif
4671 }
4672
4673 // Get the default path to the core file
4674 // Returns the length of the string
4675 int os::get_core_path(char* buffer, size_t bufferSize) {
4676 int n = jio_snprintf(buffer, bufferSize, "/cores/core.%d", current_process_id());
4677
4678 // Truncate if theoretical string was longer than bufferSize
4679 n = MIN2(n, (int)bufferSize);
4680
4681 return n;
4682 }
4683
4684 #ifndef PRODUCT
4685 void TestReserveMemorySpecial_test() {
4686 // No tests available for this platform
4687 }
4688 #endif
|