Project

General

Profile

Actions

Task #4116

closed

[model] Lazy memory allocation in memory models

Added by Andrei Tatarnikov over 11 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Andrei Tatarnikov
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));

Actions #1

Updated by Andrei Tatarnikov over 11 years ago

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

Updated by Alexander Kamkin over 10 years ago

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

Updated by Andrei Tatarnikov about 10 years ago

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

Implemented in r2453.

Actions #4

Updated by Andrei Tatarnikov about 10 years ago

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

Also available in: Atom PDF