Garbage collector problem ???
Alexandre Petit-Bianco
apbianco@cygnus.com
Fri Jan 19 10:34:00 GMT 2001
Boehm, Hans writes:
> That would be safe for Java arrays if we knew that the compiler
> always kept a pointer to the array itself while the array could
> still be dereferenced.
You mean (1) always address an array element with an arithmetic that
starts from the pointer to the array object? Or (2) always keep a
pointer to the array object around, while addressing on of its
element?
The current front-end does (1), though this can be optimized in weird
ways. I'm not sure (2) is guaranteed, because of optimizations.
> I believe currently the front end ensures that, but not in a way
> that ensures the back end will preserve the property.
I'll see if some hints can be passed to the middle and back-end.
./A
More information about the Java
mailing list