406 // methods to build strings from individual args
407 static void build_jvm_args(const char* arg);
408 static void build_jvm_flags(const char* arg);
409 static void add_string(char*** bldarray, int* count, const char* arg);
410 static const char* build_resource_string(char** args, int count);
411
412 static bool methodExists(
413 char* className, char* methodName,
414 int classesNum, char** classes, bool* allMethods,
415 int methodsNum, char** methods, bool* allClasses
416 );
417
418 static void parseOnlyLine(
419 const char* line,
420 short* classesNum, short* classesMax, char*** classes, bool** allMethods,
421 short* methodsNum, short* methodsMax, char*** methods, bool** allClasses
422 );
423
424 // Returns true if the flag is obsolete and fits into the range specified
425 // for being ignored. In the case the 'version' buffer is filled in with
426 // the version number when the flag became obsolete. Otherwise the flag has
427 // expired and should be ignored.
428 static bool is_newly_obsolete(const char* flag_name, JDK_Version* version);
429
430 // Returns 1 if the flag is deprecated and jdk version is in the range specified.
431 // In this case the 'version' buffer is filled in with the version number when
432 // the flag became deprecated.
433 // Returns -1 if the flag is deprecated and has expired (should be ignored).
434 // Returns 0 if the flag is not deprecated.
435 static int is_deprecated_flag(const char* flag_name, JDK_Version* version);
436
437 // Return the real name for the flag passed on the command line.
438 static const char* real_flag_name(const char *flag_name);
439
440 // Return the "real" name for option arg if arg is an alias, and print a warning if arg is deprecated.
441 static const char* handle_aliases_and_deprecation(const char* arg, bool warn);
442
443 static short CompileOnlyClassesNum;
444 static short CompileOnlyClassesMax;
445 static char** CompileOnlyClasses;
446 static bool* CompileOnlyAllMethods;
447
448 static short CompileOnlyMethodsNum;
449 static short CompileOnlyMethodsMax;
450 static char** CompileOnlyMethods;
451 static bool* CompileOnlyAllClasses;
452
453 static short InterpretOnlyClassesNum;
454 static short InterpretOnlyClassesMax;
455 static char** InterpretOnlyClasses;
456 static bool* InterpretOnlyAllMethods;
457
458 static bool CheckCompileOnly;
459
460 static char* SharedArchivePath;
|
406 // methods to build strings from individual args
407 static void build_jvm_args(const char* arg);
408 static void build_jvm_flags(const char* arg);
409 static void add_string(char*** bldarray, int* count, const char* arg);
410 static const char* build_resource_string(char** args, int count);
411
412 static bool methodExists(
413 char* className, char* methodName,
414 int classesNum, char** classes, bool* allMethods,
415 int methodsNum, char** methods, bool* allClasses
416 );
417
418 static void parseOnlyLine(
419 const char* line,
420 short* classesNum, short* classesMax, char*** classes, bool** allMethods,
421 short* methodsNum, short* methodsMax, char*** methods, bool** allClasses
422 );
423
424 // Returns true if the flag is obsolete and fits into the range specified
425 // for being ignored. In the case the 'version' buffer is filled in with
426 // the version number when the flag became obsolete.
427 static bool is_obsolete_flag(const char* flag_name, JDK_Version* version);
428
429 // Returns 1 if the flag is deprecated and jdk version is in the range specified.
430 // In this case the 'version' buffer is filled in with the version number when
431 // the flag became deprecated.
432 // Returns -1 if the flag is deprecated and has expired (should be ignored).
433 // Returns 0 if the flag is not deprecated.
434 static int is_deprecated_flag(const char* flag_name, JDK_Version* version);
435
436 // Return the real name for the flag passed on the command line (either an alias name or "flag_name").
437 static const char* real_flag_name(const char *flag_name);
438
439 // Return the "real" name for option arg if arg is an alias, and print a warning if arg is deprecated.
440 // Return NULL if the arg has expired.
441 static const char* handle_aliases_and_deprecation(const char* arg, bool warn);
442
443 static short CompileOnlyClassesNum;
444 static short CompileOnlyClassesMax;
445 static char** CompileOnlyClasses;
446 static bool* CompileOnlyAllMethods;
447
448 static short CompileOnlyMethodsNum;
449 static short CompileOnlyMethodsMax;
450 static char** CompileOnlyMethods;
451 static bool* CompileOnlyAllClasses;
452
453 static short InterpretOnlyClassesNum;
454 static short InterpretOnlyClassesMax;
455 static char** InterpretOnlyClasses;
456 static bool* InterpretOnlyAllMethods;
457
458 static bool CheckCompileOnly;
459
460 static char* SharedArchivePath;
|