Mercurial > hg > truffle
comparison src/share/vm/runtime/arguments_ext.hpp @ 20655:b840813adfcc
8065305: Make it possible to extend the G1CollectorPolicy
Summary: Added a G1CollectorPolicyExt where it is possible to extend the class.
Reviewed-by: sjohanss, tschatzl
author | jwilhelm |
---|---|
date | Fri, 21 Nov 2014 12:08:37 +0100 |
parents | 46140919bf90 |
children |
comparison
equal
deleted
inserted
replaced
20654:fa6adc194d48 | 20655:b840813adfcc |
---|---|
29 #include "runtime/arguments.hpp" | 29 #include "runtime/arguments.hpp" |
30 | 30 |
31 class ArgumentsExt: AllStatic { | 31 class ArgumentsExt: AllStatic { |
32 public: | 32 public: |
33 static inline void select_gc_ergonomically(); | 33 static inline void select_gc_ergonomically(); |
34 static inline bool check_gc_consistency_user(); | 34 static inline void set_gc_specific_flags(); |
35 static inline bool check_gc_consistency_ergo(); | 35 static inline bool check_gc_consistency_ergo(); |
36 static inline bool check_vm_args_consistency(); | |
37 static void process_options(const JavaVMInitArgs* args) {} | 36 static void process_options(const JavaVMInitArgs* args) {} |
38 }; | 37 }; |
39 | 38 |
40 void ArgumentsExt::select_gc_ergonomically() { | 39 void ArgumentsExt::select_gc_ergonomically() { |
41 Arguments::select_gc_ergonomically(); | 40 Arguments::select_gc_ergonomically(); |
42 } | 41 } |
43 | 42 |
44 bool ArgumentsExt::check_gc_consistency_user() { | 43 void ArgumentsExt::set_gc_specific_flags() { |
45 return Arguments::check_gc_consistency_user(); | 44 Arguments::set_gc_specific_flags(); |
46 } | 45 } |
47 | 46 |
48 bool ArgumentsExt::check_gc_consistency_ergo() { | 47 bool ArgumentsExt::check_gc_consistency_ergo() { |
49 return Arguments::check_gc_consistency_ergo(); | 48 return Arguments::check_gc_consistency_ergo(); |
50 } | 49 } |
51 | 50 |
52 bool ArgumentsExt::check_vm_args_consistency() { | |
53 return Arguments::check_vm_args_consistency(); | |
54 } | |
55 | |
56 #endif // SHARE_VM_RUNTIME_ARGUMENTS_EXT_HPP | 51 #endif // SHARE_VM_RUNTIME_ARGUMENTS_EXT_HPP |