This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: dynamic library cost (was RE: libtool, java woes)
- To: "Jonathan P. Olson" <olson at mmsi dot com>
- Subject: Re: dynamic library cost (was RE: libtool, java woes)
- From: Cedric Berger <cedric at wireless-networks dot com>
- Date: Fri, 13 Apr 2001 08:44:52 -0700
- CC: dewar at gnat dot com, gcc at gcc dot gnu dot org, hans_boehm at hp dot com, java at gcc dot gnu dot org, jsturm at one-point dot com, tromey at redhat dot com
- References: <auto-000000600681@crewsoft.com>
"Jonathan P. Olson" wrote:
> Even in Java, it's often not possible. Consider how Java AWT
> implementations
> typically store native peer objects in `long' variables. Yeah, this is
> totally evil but unfortunately Java doesn't provide any way to declare
> `native' object references.
Ok, I've done that a lot (storing native peer objects in `long' variables)
but then I write a finalizer to free() the memory explicitely.
(this is one of the very common use of finalizers)
Cedric