Project

General

Profile

Task #4116

[model] Lazy memory allocation in memory models

Added by Andrei Tatarnikov about 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
04/16/2013
Due date:
04/30/2014
% Done:

100%

Estimated time:
Detected in build:
svn
Published in build:
141018

Description

При моделировании линейки памяти сейчас создаётся массив (ArrayList) соответствующего размера. При этом, если линейка большой длины, программа расходует всю доступную память и падает. Нужно сделать, чтобы память свыше определённого размера (например, 1 МБ) выделялась по требованию (при обращению).

public static final MemoryBase M = new MemoryBase(EMemoryKind.MEM, "M", byte_t, (int)Math.pow(2, 10));

History

#1

Updated by Andrei Tatarnikov about 6 years ago

  • Subject changed from [translator] Lazy memory allocation in memory models to [model] Lazy memory allocation in memory models
#2

Updated by Alexander Kamkin about 5 years ago

  • Due date set to 04/30/2014
  • Target version set to 2.0
#3

Updated by Andrei Tatarnikov over 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Implemented in r2453.

#4

Updated by Andrei Tatarnikov over 4 years ago

  • Status changed from Resolved to Closed
  • Target version changed from 2.0 to 2.1
  • Published in build set to 141018

Also available in: Atom PDF