mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8211296: Remove HotSpot deprecation warning suppression for Mac/clang
Removed deprecation warning suppression, fixed uses of deprecated functions. Reviewed-by: dholmes, mikael
This commit is contained in:
parent
432605be5c
commit
cd95f5a933
3 changed files with 3 additions and 13 deletions
|
@ -92,7 +92,7 @@ ifeq ($(call check-jvm-feature, zero), true)
|
||||||
DISABLED_WARNINGS_gcc += return-type switch
|
DISABLED_WARNINGS_gcc += return-type switch
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DISABLED_WARNINGS_clang := tautological-compare deprecated-declarations \
|
DISABLED_WARNINGS_clang := tautological-compare \
|
||||||
undefined-var-template sometimes-uninitialized unknown-pragmas \
|
undefined-var-template sometimes-uninitialized unknown-pragmas \
|
||||||
delete-non-virtual-dtor missing-braces char-subscripts \
|
delete-non-virtual-dtor missing-braces char-subscripts \
|
||||||
ignored-qualifiers missing-field-initializers mismatched-tags
|
ignored-qualifiers missing-field-initializers mismatched-tags
|
||||||
|
|
|
@ -3238,16 +3238,6 @@ void os::init(void) {
|
||||||
Bsd::clock_init();
|
Bsd::clock_init();
|
||||||
initial_time_count = javaTimeNanos();
|
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();
|
os::Posix::init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -218,8 +218,8 @@ inline int g_isnan(double f) { return isnan(f); }
|
||||||
|
|
||||||
// Checking for finiteness
|
// Checking for finiteness
|
||||||
|
|
||||||
inline int g_isfinite(jfloat f) { return finite(f); }
|
inline int g_isfinite(jfloat f) { return isfinite(f); }
|
||||||
inline int g_isfinite(jdouble f) { return finite(f); }
|
inline int g_isfinite(jdouble f) { return isfinite(f); }
|
||||||
|
|
||||||
|
|
||||||
// Wide characters
|
// Wide characters
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue