* java/lang/natSystem.cc (SystemClass): New define.
(init_properties): Synchronize.
From-SVN: r26372
+1999-04-12 Tom Tromey <tromey@cygnus.com>
+
+ * java/lang/natSystem.cc (SystemClass): New define.
+ (init_properties): Synchronize.
+
1999-04-08 Geoff Berry <gcb@gnu.org>
* natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
MULTIDO = true
MULTICLEAN = true
-
cygnus_hack =
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
maintainer-clean-multi:
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
-
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
#include <java/io/PrintStream.h>
#include <java/io/InputStream.h>
+#define SystemClass _CL_Q34java4lang6System
+extern java::lang::Class SystemClass;
+
\f
#if defined (ECOS)
void
java::lang::System::init_properties (void)
{
- if (prop_init)
- return;
- prop_init = true;
+ {
+ // We only need to synchronize around this gatekeeper.
+ JvSynchronize sync (&SystemClass);
+ if (prop_init)
+ return;
+ prop_init = true;
+ }
properties = new java::util::Properties ();
// A convenience define.
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
-DLLTOOL = @DLLTOOL@
EH_COMMON_INCLUDE = @EH_COMMON_INCLUDE@
EXEEXT = @EXEEXT@
GCDEPS = @GCDEPS@
GCINCS = @GCINCS@
GCLIBS = @GCLIBS@
GCOBJS = @GCOBJS@
-LD = @LD@
LIBGCJ_CFLAGS = @LIBGCJ_CFLAGS@
LIBGCJ_CXXFLAGS = @LIBGCJ_CXXFLAGS@
LIBGCJ_JAVAFLAGS = @LIBGCJ_JAVAFLAGS@
-LIBTOOL = @LIBTOOL@
-LN_S = @LN_S@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
-NM = @NM@
PACKAGE = @PACKAGE@
PERL = @PERL@
RANLIB = @RANLIB@
clean: clean-am
distclean-am: distclean-generic clean-am
- -rm -f libtool
distclean: distclean-am