changeset 52855:286389b60292

8211296: Remove HotSpot deprecation warning suppression for Mac/clang Summary: Removed deprecation warning suppression, fixed uses of deprecated functions. Reviewed-by: dholmes, mikael
author kbarrett
date Fri, 05 Oct 2018 14:28:44 -0400
parents e75f6076d391
children 549bc49734e8
files make/hotspot/lib/CompileJvm.gmk src/hotspot/os/bsd/os_bsd.cpp src/hotspot/share/utilities/globalDefinitions_gcc.hpp
diffstat 3 files changed, 3 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/make/hotspot/lib/CompileJvm.gmk	Fri Oct 05 09:15:52 2018 -0400
+++ b/make/hotspot/lib/CompileJvm.gmk	Fri Oct 05 14:28:44 2018 -0400
@@ -92,7 +92,7 @@
   DISABLED_WARNINGS_gcc += return-type switch
 endif
 
-DISABLED_WARNINGS_clang := tautological-compare deprecated-declarations \
+DISABLED_WARNINGS_clang := tautological-compare \
     undefined-var-template sometimes-uninitialized unknown-pragmas \
     delete-non-virtual-dtor missing-braces char-subscripts \
     ignored-qualifiers missing-field-initializers mismatched-tags
--- a/src/hotspot/os/bsd/os_bsd.cpp	Fri Oct 05 09:15:52 2018 -0400
+++ b/src/hotspot/os/bsd/os_bsd.cpp	Fri Oct 05 14:28:44 2018 -0400
@@ -3238,16 +3238,6 @@
   Bsd::clock_init();
   initial_time_count = javaTimeNanos();
 
-#ifdef __APPLE__
-  // XXXDARWIN
-  // Work around the unaligned VM callbacks in hotspot's
-  // sharedRuntime. The callbacks don't use SSE2 instructions, and work on
-  // Linux, Solaris, and FreeBSD. On Mac OS X, dyld (rightly so) enforces
-  // alignment when doing symbol lookup. To work around this, we force early
-  // binding of all symbols now, thus binding when alignment is known-good.
-  _dyld_bind_fully_image_containing_address((const void *) &os::init);
-#endif
-
   os::Posix::init();
 }
 
--- a/src/hotspot/share/utilities/globalDefinitions_gcc.hpp	Fri Oct 05 09:15:52 2018 -0400
+++ b/src/hotspot/share/utilities/globalDefinitions_gcc.hpp	Fri Oct 05 14:28:44 2018 -0400
@@ -218,8 +218,8 @@
 
 // Checking for finiteness
 
-inline int g_isfinite(jfloat  f)                 { return finite(f); }
-inline int g_isfinite(jdouble f)                 { return finite(f); }
+inline int g_isfinite(jfloat  f)                 { return isfinite(f); }
+inline int g_isfinite(jdouble f)                 { return isfinite(f); }
 
 
 // Wide characters