Skip to content

Commit 8b3d676

Browse files
committed
8238737: remove DeoptimizeAllClassesRate from CTW library
Reviewed-by: shade, vlivanov
1 parent 709cfe5 commit 8b3d676

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

test/hotspot/jtreg/testlibrary/ctw/src/sun/hotspot/tools/ctw/Compiler.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -83,11 +83,6 @@ public static void compileClass(Class<?> aClass, long id, Executor executor) {
8383
executor.execute(new CompileMethodCommand(id, e));
8484
}
8585
METHOD_COUNT.addAndGet(methodCount);
86-
87-
if (Utils.DEOPTIMIZE_ALL_CLASSES_RATE > 0
88-
&& (id % Utils.DEOPTIMIZE_ALL_CLASSES_RATE == 0)) {
89-
WHITE_BOX.deoptimizeAll();
90-
}
9186
}
9287

9388
private static void preloadClasses(String className, long id,

test/hotspot/jtreg/testlibrary/ctw/src/sun/hotspot/tools/ctw/Utils.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -62,13 +62,6 @@ public class Utils {
6262
*/
6363
public static final Pattern PATH_SEPARATOR = Pattern.compile(
6464
File.pathSeparator, Pattern.LITERAL);
65-
/**
66-
* Value of {@code -DDeoptimizeAllClassesRate}. Frequency of
67-
* {@code WB.deoptimizeAll()} invocation If it less that {@code 0},
68-
* {@code WB.deoptimizeAll()} will not be invoked.
69-
*/
70-
public static final int DEOPTIMIZE_ALL_CLASSES_RATE
71-
= Integer.getInteger("DeoptimizeAllClassesRate", -1);
7265
/**
7366
* Value of {@code -DCompileTheWorldStopAt}. Last class to consider.
7467
*/

0 commit comments

Comments
 (0)