This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Language extensions ?
- From: Andrew Haley <aph at redhat dot com>
- To: "Robin Garner" <robin dot garner at iname dot com>
- Cc: java at gcc dot gnu dot org
- Date: Wed, 2 Apr 2003 10:09:47 +0100 (BST)
- Subject: Re: Language extensions ?
- References: <20030402042812.9751.qmail@iname.com>
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.