8238737: remove DeoptimizeAllClassesRate from CTW library

Reviewed-by: shade, vlivanov
This commit is contained in:
Igor Ignatyev 2020-09-30 14:50:15 +00:00
parent 709cfe5f28
commit 8b3d67681e
2 changed files with 2 additions and 14 deletions

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -83,11 +83,6 @@ public class Compiler {
executor.execute(new CompileMethodCommand(id, e)); executor.execute(new CompileMethodCommand(id, e));
} }
METHOD_COUNT.addAndGet(methodCount); METHOD_COUNT.addAndGet(methodCount);
if (Utils.DEOPTIMIZE_ALL_CLASSES_RATE > 0
&& (id % Utils.DEOPTIMIZE_ALL_CLASSES_RATE == 0)) {
WHITE_BOX.deoptimizeAll();
}
} }
private static void preloadClasses(String className, long id, private static void preloadClasses(String className, long id,

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -62,13 +62,6 @@ public class Utils {
*/ */
public static final Pattern PATH_SEPARATOR = Pattern.compile( public static final Pattern PATH_SEPARATOR = Pattern.compile(
File.pathSeparator, Pattern.LITERAL); File.pathSeparator, Pattern.LITERAL);
/**
* Value of {@code -DDeoptimizeAllClassesRate}. Frequency of
* {@code WB.deoptimizeAll()} invocation If it less that {@code 0},
* {@code WB.deoptimizeAll()} will not be invoked.
*/
public static final int DEOPTIMIZE_ALL_CLASSES_RATE
= Integer.getInteger("DeoptimizeAllClassesRate", -1);
/** /**
* Value of {@code -DCompileTheWorldStopAt}. Last class to consider. * Value of {@code -DCompileTheWorldStopAt}. Last class to consider.
*/ */