diff src/os/linux/vm/os_linux.cpp @ 1999:2c8e1acf0433

7009828: Fix for 6938627 breaks visualvm monitoring when -Djava.io.tmpdir is defined Summary: Change get_temp_directory() back to /tmp and %TEMP% like it always was and where the tools expect it to be. Reviewed-by: phh, dcubed, kamg, alanb
author coleenp
date Wed, 12 Jan 2011 13:59:18 -0800
parents 2ecd0d1194d2
children a541ca8fa0e3
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp	Fri Aug 27 16:57:04 2010 +0100
+++ b/src/os/linux/vm/os_linux.cpp	Wed Jan 12 13:59:18 2011 -0800
@@ -1533,10 +1533,9 @@
 
 const char* os::dll_file_extension() { return ".so"; }
 
-const char* os::get_temp_directory() {
-  const char *prop = Arguments::get_property("java.io.tmpdir");
-  return prop == NULL ? "/tmp" : prop;
-}
+// This must be hard coded because it's the system's temporary
+// directory not the java application's temp directory, ala java.io.tmpdir.
+const char* os::get_temp_directory() { return "/tmp"; }
 
 static bool file_exists(const char* filename) {
   struct stat statbuf;