Garbage collector question - "too many roots set"
Øyvind Harboe
oyvind.harboe@zylin.com
Thu May 22 16:18:00 GMT 2003
>I suppose this is on Windows?
Yes.
>Is it possible you have native code that allocates
>a large number of small noncontiguous memory regions
>from the OS?
I'm using javax.comm from Sun that contains some JNI code.
I have no idea what Suns code is doing.
>Workarounds available are increasing the compile-time
>MAX_ROOT_SETS constant, or disabling DYNAMIC_LOADING
>entirely if you can be certain that you are static-linking
>you gcj libraries and no java pointers can exist
>in a DLL data region.
I suppose the problem is that my app is eating resources,
so the above would put of the inevitable. Fortunally this
isn't going to bite me this time around, it was only my
tortuous test app that died.
Now a movie quote from "Kelly's Heroes":
Big Joe: What are you doing?!
Oddball: I'm drinking wine and eating cheese, and catching some rays,
you know ...
Big Joe: What's happening?!
Oddball: Well, the tank's broke and they're trying to fix it ...
Big Joe: Well then, why the hell aren't you up there helping them?!
Oddball: [chuckles] I only ride em, I don't know what makes em work.
:-)
Øyvind
More information about the Java
mailing list