Skip to content

Conversation

@niloc132
Copy link
Member

CollectorLegacy shouldn't be needed in any modern browser, though the Error.stack property is still non-standard. This patch leaves it in, so that it is at least possible for projects to restore it if they need it, but won't add an extra step to startup for most GWT applications.

With only a single implementation, the static final field isn't needed and likewise doesn't need to be eagerly initialized. This will remove clinits for both Impl and StackTraceCreator everywhere they are used, and by default should still compile out the collector instance into just a set of static functions.

CollectorLegacy shouldn't be needed in any modern browser, though the
Error.stack property is still non-standard. This patch leaves it in, so
that it is at least possible for projects to restore it if they need it,
but won't add an extra step to startup for most GWT applications.

With only a single implementation, the static final field isn't needed
and likewise doesn't need to be eagerly initialized. This will remove
clinits for both Impl and StackTraceCreator everywhere they are used,
and by default should still compile out the collector instance into just
a set of static functions.
@niloc132 niloc132 added the ready This PR has been reviewed by a maintainer and is ready for a CI run. label Nov 13, 2025
@niloc132 niloc132 added this to the 2.13 milestone Nov 13, 2025
@niloc132
Copy link
Member Author

Combined compiled size of all examples after this change is 3320139 bytes, down about 18k (or 0.5%) from 3338616.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready This PR has been reviewed by a maintainer and is ready for a CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant