Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I permamently tenure a datastructure.

 
winton davies
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a big big in memory datastructure (~1gb) (and this is just about the limit for most JVMs as well).
I have had some success earlier in LISP on a similar problem, by basically loading the datastructure, and the telling the GC that it is never, ever, supposed to look at it.
I've been looking through the 1.3.1 hotspot JVM hints, and can't find how to get stuff into the "Perm" area. Any other ideas ?
Many thanks,
Winton
------------------
 
winton davies
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, answered it myself...
use static final.... seems to work...
Winton
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic