Skip to content

Commit

Permalink
Disable LUDCL optimization by default
Browse files Browse the repository at this point in the history
An Issue has been found with LUDCL in OpenJ9. The wrong class loader is cached causing a ClassNotFoundException. Disabling this feature by default until this is resolved. eclipse-openj9/openj9#7332

Signed-off-by: Theresa Mammarella <[email protected]>
  • Loading branch information
theresa-m committed Oct 4, 2019
1 parent f4b481f commit 6d1279a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/java.base/share/classes/java/io/ObjectInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2018,2018 All Rights Reserved
* (c) Copyright IBM Corp. 2018, 2019 All Rights Reserved
* ===========================================================================
*/

Expand Down Expand Up @@ -336,12 +336,12 @@ private static class Logging {
}


/** if true LUDCL/forName results would be cached, true by default starting Java8 */
/** if true LUDCL/forName results would be cached, false by default starting Java8 */
private static final class GetClassCachingSettingAction
implements PrivilegedAction<Boolean> {
public Boolean run() {
String property =
System.getProperty("com.ibm.enableClassCaching", "true");
System.getProperty("com.ibm.enableClassCaching", "false");
return property.equalsIgnoreCase("true");
}
}
Expand Down

0 comments on commit 6d1279a

Please sign in to comment.