mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8003310: Enable -Wunused-function when compiling with gcc
Add the -Wunused-function flag and remove a number of unused functions. Reviewed-by: dholmes, coleenp, kvn
This commit is contained in:
parent
33f6dd2215
commit
eeb83733a6
29 changed files with 92 additions and 266 deletions
|
@ -1745,11 +1745,15 @@ bool Arguments::verify_percentage(uintx value, const char* name) {
|
|||
return false;
|
||||
}
|
||||
|
||||
#if !INCLUDE_ALL_GCS
|
||||
#ifdef ASSERT
|
||||
static bool verify_serial_gc_flags() {
|
||||
return (UseSerialGC &&
|
||||
!(UseParNewGC || (UseConcMarkSweepGC || CMSIncrementalMode) || UseG1GC ||
|
||||
UseParallelGC || UseParallelOldGC));
|
||||
}
|
||||
#endif // ASSERT
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
// check if do gclog rotation
|
||||
// +UseGCLogFileRotation is a must,
|
||||
|
@ -3085,6 +3089,7 @@ do { \
|
|||
} \
|
||||
} while(0)
|
||||
|
||||
#if !INCLUDE_ALL_GCS
|
||||
static void force_serial_gc() {
|
||||
FLAG_SET_DEFAULT(UseSerialGC, true);
|
||||
FLAG_SET_DEFAULT(CMSIncrementalMode, false); // special CMS suboption
|
||||
|
@ -3094,6 +3099,7 @@ static void force_serial_gc() {
|
|||
UNSUPPORTED_GC_OPTION(UseConcMarkSweepGC);
|
||||
UNSUPPORTED_GC_OPTION(UseParNewGC);
|
||||
}
|
||||
#endif // INCLUDE_ALL_GCS
|
||||
|
||||
// Parse entry point called from JNI_CreateJavaVM
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue