changeset 1869:7491c8b96111

Merge
author bobv
date Thu, 07 Oct 2010 15:14:41 -0400
parents 3dc12ef8735e (diff) b6aedd1acdc0 (current diff)
children c77b5c592eab
files
diffstat 8 files changed, 17 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/sparc/vm/globals_sparc.hpp	Thu Oct 07 08:06:06 2010 -0700
+++ b/src/cpu/sparc/vm/globals_sparc.hpp	Thu Oct 07 15:14:41 2010 -0400
@@ -62,3 +62,5 @@
 
 define_pd_global(bool, RewriteBytecodes,     true);
 define_pd_global(bool, RewriteFrequentPairs, true);
+
+define_pd_global(bool, UseMembar,            false);
--- a/src/cpu/x86/vm/globals_x86.hpp	Thu Oct 07 08:06:06 2010 -0700
+++ b/src/cpu/x86/vm/globals_x86.hpp	Thu Oct 07 15:14:41 2010 -0400
@@ -63,3 +63,5 @@
 
 define_pd_global(bool, RewriteBytecodes,     true);
 define_pd_global(bool, RewriteFrequentPairs, true);
+
+define_pd_global(bool, UseMembar,            false);
--- a/src/cpu/zero/vm/globals_zero.hpp	Thu Oct 07 08:06:06 2010 -0700
+++ b/src/cpu/zero/vm/globals_zero.hpp	Thu Oct 07 15:14:41 2010 -0400
@@ -45,3 +45,5 @@
 
 define_pd_global(bool,  RewriteBytecodes,     true);
 define_pd_global(bool,  RewriteFrequentPairs, true);
+
+define_pd_global(bool,  UseMembar,            false);
--- a/src/os/linux/vm/attachListener_linux.cpp	Thu Oct 07 08:06:06 2010 -0700
+++ b/src/os/linux/vm/attachListener_linux.cpp	Thu Oct 07 15:14:41 2010 -0400
@@ -176,10 +176,10 @@
 
   int n = snprintf(path, UNIX_PATH_MAX, "%s/.java_pid%d",
                    os::get_temp_directory(), os::current_process_id());
-  if (n <= (int)UNIX_PATH_MAX) {
+  if (n < (int)UNIX_PATH_MAX) {
     n = snprintf(initial_path, UNIX_PATH_MAX, "%s.tmp", path);
   }
-  if (n > (int)UNIX_PATH_MAX) {
+  if (n >= (int)UNIX_PATH_MAX) {
     return -1;
   }
 
--- a/src/share/vm/includeDB_core	Thu Oct 07 08:06:06 2010 -0700
+++ b/src/share/vm/includeDB_core	Thu Oct 07 15:14:41 2010 -0400
@@ -3229,6 +3229,7 @@
 orderAccess.hpp                         os.hpp
 
 orderAccess_<os_arch>.inline.hpp        orderAccess.hpp
+orderAccess_<os_arch>.inline.hpp        vm_version_<arch>.hpp
 
 os.cpp                                  allocation.inline.hpp
 os.cpp                                  arguments.hpp
--- a/src/share/vm/runtime/globals.hpp	Thu Oct 07 08:06:06 2010 -0700
+++ b/src/share/vm/runtime/globals.hpp	Thu Oct 07 15:14:41 2010 -0400
@@ -323,10 +323,10 @@
   /* UseMembar is theoretically a temp flag used for memory barrier         \
    * removal testing.  It was supposed to be removed before FCS but has     \
    * been re-added (see 6401008) */                                         \
-  product(bool, UseMembar, false,                                           \
+  product_pd(bool, UseMembar,                                               \
           "(Unstable) Issues membars on thread state transitions")          \
                                                                             \
-  /* Temporary: See 6948537 */                                             \
+  /* Temporary: See 6948537 */                                              \
   experimental(bool, UseMemSetInBOT, true,                                  \
           "(Unstable) uses memset in BOT updates in GC code")               \
                                                                             \
--- a/src/share/vm/runtime/sharedRuntime.cpp	Thu Oct 07 08:06:06 2010 -0700
+++ b/src/share/vm/runtime/sharedRuntime.cpp	Thu Oct 07 15:14:41 2010 -0400
@@ -302,6 +302,9 @@
   return (f <= (double)0.0) ? (double)0.0 - f : f;
 }
 
+#endif
+
+#if defined(__SOFTFP__) || defined(PPC)
 double SharedRuntime::dsqrt(double f) {
   return sqrt(f);
 }
--- a/src/share/vm/runtime/sharedRuntime.hpp	Thu Oct 07 08:06:06 2010 -0700
+++ b/src/share/vm/runtime/sharedRuntime.hpp	Thu Oct 07 15:14:41 2010 -0400
@@ -116,6 +116,9 @@
 
 #if defined(__SOFTFP__) || defined(E500V2)
   static double dabs(double f);
+#endif
+
+#if defined(__SOFTFP__) || defined(PPC)
   static double dsqrt(double f);
 #endif