This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dynamic library cost (was RE: libtool, java woes)


"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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]