mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-24 04:54:40 +02:00
8238737: remove DeoptimizeAllClassesRate from CTW library
Reviewed-by: shade, vlivanov
This commit is contained in:
parent
709cfe5f28
commit
8b3d67681e
2 changed files with 2 additions and 14 deletions
|
@ -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.
|
||||
*
|
||||
* 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));
|
||||
}
|
||||
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,
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
* 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(
|
||||
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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue