Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Objective 2.5 - memory/gc

 
sh yh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Objective 2.5 (CLDC) - Write code that effectively manages memory / garbage collection.
The only thing that I know of related to this objective is System.gc().
Are there any other classes/methods that we can use to effectively manage memory?
Thanks.
 
Michael Zhao
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Runtime
 
sh yh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Weishe Zhao:
Runtime

Thanks
 
Theodore Casser
Ranch Hand
Posts: 1902
Hibernate Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if this would count, but for the sake of completeness, you probably want to also just consider code that handles resources effectively in the CLDC situation. Concepts like releasing resources after use and nulling out objects when you don't need them anymore so you can conserve limited memory.
 
Terence Doyle
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I wonder if 'ROMizing' comes under this topic. Its on page 43 (section 5.3.4) of the MIDP 1.1 spec. ??
Bye,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic