Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Make EmittedAnnotation Unserializable #1288

Merged
merged 2 commits into from
Jan 6, 2020
Merged

Conversation

seldridge
Copy link
Member

This large annotation is causing problems with ChiselStage serialization.

Chisel3 adds an EmittedFirrtlCircuitAnnotation due to the needs to maintain backwards compatibility with ChiselExecutionResult. This large annotation then winds up being serialized to JSON and causing the heap to blow up.

This fixes that problem by preventing this from getting serialized.

This was never a problem for FIRRTL as FIRRTL has an emitter that runs and removes this annotation.

Checklist

  • Did you specify the type of improvement?
  • Did you state the API impact?
  • Did you specify the code generation impact?
  • Did you request a desired merge strategy?

Type of Improvement

  • bug fix

API Impact

None.

Backend Code Generation Impact

None.

Desired Merge Strategy

  • Squash: The PR will be squashed and merged (choose this if you have no preference.

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
@seldridge seldridge added bugfix Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI. labels Dec 20, 2019
@seldridge seldridge added this to the 1.2.X milestone Dec 20, 2019
@seldridge seldridge requested a review from a team as a code owner December 20, 2019 21:23
@mergify mergify bot merged commit 9e1c224 into master Jan 6, 2020
mergify bot pushed a commit that referenced this pull request Jan 6, 2020
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 9e1c224)
@mergify mergify bot added the Backported This PR has been backported to marked stable branch label Jan 6, 2020
mergify bot added a commit that referenced this pull request Jan 6, 2020
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 9e1c224)

Co-authored-by: Schuyler Eldridge <schuyler.eldridge@gmail.com>
@albert-magyar albert-magyar deleted the unserializable-emitted branch May 18, 2020 04:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Backported This PR has been backported to marked stable branch bugfix Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants