comparison src/share/vm/runtime/arguments.cpp @ 9060:cc32ccaaf47f

8003310: Enable -Wunused-function when compiling with gcc Summary: Add the -Wunused-function flag and remove a number of unused functions. Reviewed-by: dholmes, coleenp, kvn
author mikael
date Thu, 04 Apr 2013 10:01:26 -0700
parents c0f9217203b2
children 8be1318fbe77
comparison
equal deleted inserted replaced
9059:17bf4d428955 9060:cc32ccaaf47f
1743 "%s of " UINTX_FORMAT " is invalid; must be between 0 and 100\n", 1743 "%s of " UINTX_FORMAT " is invalid; must be between 0 and 100\n",
1744 name, value); 1744 name, value);
1745 return false; 1745 return false;
1746 } 1746 }
1747 1747
1748 #if !INCLUDE_ALL_GCS
1749 #ifdef ASSERT
1748 static bool verify_serial_gc_flags() { 1750 static bool verify_serial_gc_flags() {
1749 return (UseSerialGC && 1751 return (UseSerialGC &&
1750 !(UseParNewGC || (UseConcMarkSweepGC || CMSIncrementalMode) || UseG1GC || 1752 !(UseParNewGC || (UseConcMarkSweepGC || CMSIncrementalMode) || UseG1GC ||
1751 UseParallelGC || UseParallelOldGC)); 1753 UseParallelGC || UseParallelOldGC));
1752 } 1754 }
1755 #endif // ASSERT
1756 #endif // INCLUDE_ALL_GCS
1753 1757
1754 // check if do gclog rotation 1758 // check if do gclog rotation
1755 // +UseGCLogFileRotation is a must, 1759 // +UseGCLogFileRotation is a must,
1756 // no gc log rotation when log file not supplied or 1760 // no gc log rotation when log file not supplied or
1757 // NumberOfGCLogFiles is 0, or GCLogFileSize is 0 1761 // NumberOfGCLogFiles is 0, or GCLogFileSize is 0
3083 } \ 3087 } \
3084 FLAG_SET_DEFAULT(gc, false); \ 3088 FLAG_SET_DEFAULT(gc, false); \
3085 } \ 3089 } \
3086 } while(0) 3090 } while(0)
3087 3091
3092 #if !INCLUDE_ALL_GCS
3088 static void force_serial_gc() { 3093 static void force_serial_gc() {
3089 FLAG_SET_DEFAULT(UseSerialGC, true); 3094 FLAG_SET_DEFAULT(UseSerialGC, true);
3090 FLAG_SET_DEFAULT(CMSIncrementalMode, false); // special CMS suboption 3095 FLAG_SET_DEFAULT(CMSIncrementalMode, false); // special CMS suboption
3091 UNSUPPORTED_GC_OPTION(UseG1GC); 3096 UNSUPPORTED_GC_OPTION(UseG1GC);
3092 UNSUPPORTED_GC_OPTION(UseParallelGC); 3097 UNSUPPORTED_GC_OPTION(UseParallelGC);
3093 UNSUPPORTED_GC_OPTION(UseParallelOldGC); 3098 UNSUPPORTED_GC_OPTION(UseParallelOldGC);
3094 UNSUPPORTED_GC_OPTION(UseConcMarkSweepGC); 3099 UNSUPPORTED_GC_OPTION(UseConcMarkSweepGC);
3095 UNSUPPORTED_GC_OPTION(UseParNewGC); 3100 UNSUPPORTED_GC_OPTION(UseParNewGC);
3096 } 3101 }
3102 #endif // INCLUDE_ALL_GCS
3097 3103
3098 // Parse entry point called from JNI_CreateJavaVM 3104 // Parse entry point called from JNI_CreateJavaVM
3099 3105
3100 jint Arguments::parse(const JavaVMInitArgs* args) { 3106 jint Arguments::parse(const JavaVMInitArgs* args) {
3101 3107