Language extensions ?

Andrew Haley aph@redhat.com
Wed Apr 2 09:25:00 GMT 2003


Robin Garner writes:
 > > AFAICS RawMemoryAccess already provides everything that anyone might
 > > need, in a reasonably clean and well-factored package. We just need
 > > an impementation.
 > 
 > Perhaps I'm being dense, but I can't quite see how (for example) you
 > would implement a garbage collector for gcj in java using
 > RawMemoryAccess, given that it requires that RawMemoryAccess objects
 > don't overlap with heap objects.
Well, we could relax that restriction to allow RawMemoryAccess to
everything.
But I see your point. I guess it doesn't. But is that a bad thing?
If you want a garbage collector for gcj, why write it in Java?
It seems to me that Java doesn't have low-level memory access
features, by design. C++ does, by design. But you want to use Java
and not C++. Like hammering a nail with pliers.
Andrew.


More information about the Java mailing list

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