Where does GcjRaw come from?defined?

Bryce McKinlay bryce@waitaki.otago.ac.nz
Sun Mar 3 18:43:00 GMT 2002


Per Bothner wrote:
> Tom Tromey wrote:
>>> Per> For that matter, perhaps we shoudl just use (void*) in CNI
>> Per> instead of RawData?
>>>> Where do you mean?
>>> I just meant that since RawData is the Java convention/version of
> (void*), 

Theres a little more to it than that. A RawData is actually ignored by 
the GC (ie not scanned during mark phase), so it really means "pointer 
sized peice of data which will not be a pointer to something allocated 
by the GC", except in special circumstances where you want a hidden 
pointer. Since its usually much more convenient to use the GC allocator 
when associating native data with a Java class, RawData is not 
appropriate and you have to instead use java.lang.Object. Perhaps we 
should have another type of RawData which is not ignore by the GC.
regards
Bryce.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /