mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
6885297: java -XX:RefDiscoveryPolicy=2 or -XX:TLABWasteTargetPercent=0 cause VM crash
Interval checking is now being performed on the values passed in for these two flags. The current acceptable range for RefDiscoveryPolicy is [0..1], and for TLABWasteTargetPercent it is [1..100]. Reviewed-by: apetrusenko, ysr
This commit is contained in:
parent
679f958f72
commit
b34027a600
4 changed files with 32 additions and 2 deletions
|
@ -263,10 +263,13 @@ class ReferenceProcessor : public CHeapObj {
|
|||
int parallel_gc_threads = 1,
|
||||
bool mt_processing = false,
|
||||
bool discovered_list_needs_barrier = false);
|
||||
|
||||
// RefDiscoveryPolicy values
|
||||
enum {
|
||||
enum DiscoveryPolicy {
|
||||
ReferenceBasedDiscovery = 0,
|
||||
ReferentBasedDiscovery = 1
|
||||
ReferentBasedDiscovery = 1,
|
||||
DiscoveryPolicyMin = ReferenceBasedDiscovery,
|
||||
DiscoveryPolicyMax = ReferentBasedDiscovery
|
||||
};
|
||||
|
||||
static void init_statics();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue