Skip to content

Another take on avoiding garbage in classpath lookups #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from

Conversation

retronym
Copy link
Owner

@retronym retronym commented Aug 9, 2019

No description provided.

@retronym retronym force-pushed the ticket/11664-alloc branch 2 times, most recently from 996bef3 to 7d3a317 Compare August 15, 2019 11:45
@retronym retronym mentioned this pull request Aug 16, 2019
lrytz and others added 5 commits August 16, 2019 09:47
Escape dollar signs for variables in doc comments
Reduce allocations in the backend
This commit reverts part of the scala#8322

I recently changed to using the last entry from getResources to
avoid parent classloader delegation, but this leads to unwanted
results if the plugin classpath itself contains multiple
`scalac-plugin.xml` resources and wants the compiler to choose
the first.

I have _not_ reverted the other change in scala#8322 which overrides
`getResource` to avoid parent delegation for `scalac-plugin.xml`.
I have documented the `findPluginClassLoader` extension point
with instructions to do the same.
…tweak

Use the first scalac-plugin.xml from the plugin classpath
@retronym retronym force-pushed the ticket/11664-alloc branch from 2ba4f60 to 42b055a Compare August 20, 2019 23:22
  - Avoid repeated conversion between package dotted names ("com.foo")
    and relative paths ("com/foo/") by threading a `PackageName`
    instance through the aggregate classpath lookup which caches
    the path name.
  - Avoid creating result buffers inside of each element of the
    aggregate classpath by introducing a callback based API that
    lets `AggregateClasspath` use a single buffer.
@retronym retronym force-pushed the ticket/11664-alloc branch from 42b055a to 22edf28 Compare August 21, 2019 00:12
@retronym retronym closed this Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants