Skip to content

Commit

Permalink
Remove ClassLoader unnamed module lazy value generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-ristovic committed Jul 10, 2024
1 parent bf73631 commit f2233fa
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,6 @@ private Class<?> findLoadedClass0(String name) {
@Alias
native Stream<Package> packages();

@SuppressWarnings("static-method")
@Substitute
public Target_java_lang_Module getUnnamedModule() {
return ClassLoaderUtil.unnamedModuleReference.get();
}
/*
* The assertion status of classes is fixed at image build time because it is baked into the AOT
* compiled code. All methods that modify the assertion status are substituted to throw an
Expand Down Expand Up @@ -361,11 +356,6 @@ public Object transform(Object receiver, Object originalValue) {
}
}

final class ClassLoaderUtil {

public static final LazyFinalReference<Target_java_lang_Module> unnamedModuleReference = new LazyFinalReference<>(Target_java_lang_Module::new);
}

@TargetClass(className = "java.lang.ClassLoader", innerClass = "ParallelLoaders")
final class Target_java_lang_ClassLoader_ParallelLoaders {

Expand Down

0 comments on commit f2233fa

Please sign in to comment.