Skip to content
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

Duplicate element ATM before get/put #362

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

d367wang
Copy link

@d367wang d367wang commented Oct 13, 2021

elementToAtm is a HashMap that caches the ATMs of various elements, i.e. it stores the declared type of variables and type variables. Therefore, it's important to prevent the stored ATMs from side-effect by:

  1. store into elementToAtm the copy of the atm that is to being cached
  2. use the copy of the atm that are fetched from elementToAtm

@d367wang d367wang requested a review from wmdietl May 2, 2022 01:40
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.

2 participants