8211296: Remove HotSpot deprecation warning suppression for Mac/clang
authorkbarrett
Fri, 05 Oct 2018 14:28:44 -0400
changeset 52026 286389b60292
parent 52025 e75f6076d391
child 52027 549bc49734e8
child 56935 344eb87a55fb
8211296: Remove HotSpot deprecation warning suppression for Mac/clang Summary: Removed deprecation warning suppression, fixed uses of deprecated functions. Reviewed-by: dholmes, mikael
make/hotspot/lib/CompileJvm.gmk
src/hotspot/os/bsd/os_bsd.cpp
src/hotspot/share/utilities/globalDefinitions_gcc.hpp
--- 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