Граф коммитов

8 Коммитов

Автор SHA1 Сообщение Дата
fur%netscape.com 9ded12bf7a Transferred work from private ns tree back into mozilla. 1998-08-29 03:00:50 +00:00
fur 00108b9f51 Tweaked comment. 1998-07-03 02:43:34 +00:00
beard b0adf38f64 enter_js now static, since it had no external prototype. 1998-07-01 18:47:26 +00:00
fur 1bb1ec2907 If the same JSObject is reflected into Java more than once then we should
return the same Java object, both for efficiency and so that the '=='
operator works as expected in Java when comparing two JSObjects.
However, it is not possible to hold a reference to a Java object without
inhibiting GC of that object, at least not in a way that is portable
to all vendor's JVMs, i.e. a weak reference. So, for now, JSObject identity
is broken.
1998-07-01 06:11:39 +00:00
fur 4feb603992 Eliminated the last uses of the JNIEnv global variable. Unfortunately, this
means that we had to switch from using NSPR hash tables to a private version.
The new jsj_hash.c file is derived from plhash.c, but it provides for an additional
argument to be passed to the hash key comparison function.  This capability
is used to pass in the JNIEnv pointer.

On shutdown, LiveConnect now removes all references to Java objects and classes,
so that the JVM might be able to GC them.
1998-06-30 10:04:32 +00:00
fur 3b5246d547 Aggressively track and release JNI local references to constructed
Java objects, because otherwise at least one JVM is reticent about
GC'ing them.
1998-06-28 07:53:04 +00:00
beard 6be3eb992d Added XP_MAC changes to export the JSObject native methods. 1998-06-23 02:03:10 +00:00
fur d5b0774f7c [Not in the mozilla build]
This new vendor-neutral version of LiveConnect is designed to replace the older
one in the js/jsj directory, which only works with the Netscape JVM.  It is part
of the OJI initiative.
1998-06-20 17:46:42 +00:00