Skip to content

Fix various problems with memory allocation#1

Open
drepper wants to merge 1 commit intodramninjasUMD:masterfrom
drepper:master
Open

Fix various problems with memory allocation#1
drepper wants to merge 1 commit intodramninjasUMD:masterfrom
drepper:master

Conversation

@drepper
Copy link

@drepper drepper commented Aug 21, 2019

  • virtual destructor in ClockDomain needed to be able to call
    delete on respective pointers
  • do not provide incomplete copy of MultiChannelMemorySystem in
    DRAMSim.h, instead allocate the appropriate header. Among other
    problems, the copy didn't provide the destructor
  • in MultiChannelMemorySystem class, add member clockDomainCB to
    hold pointer to callback. Pass this to clockDomainCrosser and
    use it to free data structure in destructor
  • in MultiChannelMemorySystem destructor delete csvOut as well

- virtual destructor in ClockDomain needed to be able to call
  delete on respective pointers
- do not provide incomplete copy of MultiChannelMemorySystem in
  DRAMSim.h, instead allocate the appropriate header.  Among other
  problems, the copy didn't provide the destructor
- in MultiChannelMemorySystem class, add member clockDomainCB to
  hold pointer to callback.  Pass this to clockDomainCrosser and
  use it to free data structure in destructor
- in MultiChannelMemorySystem destructor delete csvOut as well
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.

1 participant