Skip to content

[core] Fix memory usage regression in CPD - #5090

Merged
adangel merged 1 commit into
pmd:masterfrom
jsotuyod:issue-5066
Jun 28, 2024
Merged

adangel merged 1 commit into
pmd:masterfrom
jsotuyod:issue-5066

Conversation

@jsotuyod

Copy link
Copy Markdown
Member
  • inadvertently I was using the constructor that received an int as initial capacity, which instantiated massive collections leading to an increase in memory usage.

Describe the PR

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

 - Inadvertly I was using the constructor that received an int as
   initial capacity, which instantiated massive collections leading to
   an increase in memory usage.
@ghost

ghost commented Jun 28, 2024

Copy link
Copy Markdown
1 Message
📖 Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Download full report as build artifact

Generated by 🚫 Danger

@adangel adangel added this to the 7.3.0 milestone Jun 28, 2024
@adangel

adangel commented Jun 28, 2024

Copy link
Copy Markdown
Member

Thanks! I'll merge this also for 7.3.0....

adangel added a commit that referenced this pull request Jun 28, 2024
@adangel
adangel merged commit 10bfa39 into pmd:master Jun 28, 2024
adangel added a commit that referenced this pull request Jun 28, 2024
Merge pull request #5090 from Monits:issue-5066
@jsotuyod
jsotuyod deleted the issue-5066 branch June 28, 2024 11:46
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.

[core] CPD throws java.lang.OutOfMemoryError: Java heap space (since 7.1.0)

2 participants