Skip to content

Commit

Permalink
Wrapper default type pool with lazy facade to avoid accessive caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Oct 26, 2023
1 parent 880027c commit 062835c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3370,7 +3370,9 @@ enum Default implements PoolStrategy {
* {@inheritDoc}
*/
public TypePool typePool(ClassFileLocator classFileLocator, @MaybeNull ClassLoader classLoader) {
return new TypePool.Default.WithLazyResolution(TypePool.CacheProvider.Simple.withObjectType(), classFileLocator, readerMode);
return new TypePool.LazyFacade(new TypePool.Default.WithLazyResolution(TypePool.CacheProvider.Simple.withObjectType(),
classFileLocator,
readerMode));
}

/**
Expand Down

0 comments on commit 062835c

Please sign in to comment.