Commit 69d5914b by Tom Tromey Committed by Tom Tromey

natSystem.cc (SystemClass): New define.

	* java/lang/natSystem.cc (SystemClass): New define.
	(init_properties): Synchronize.

From-SVN: r26372
parent ed45de98
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> 1999-04-08 Geoff Berry <gcb@gnu.org>
* natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6). * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
......
...@@ -502,7 +502,6 @@ MULTISUBDIR = ...@@ -502,7 +502,6 @@ MULTISUBDIR =
MULTIDO = true MULTIDO = true
MULTICLEAN = true MULTICLEAN = true
cygnus_hack = cygnus_hack =
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
...@@ -1303,7 +1302,6 @@ distclean-multi: ...@@ -1303,7 +1302,6 @@ distclean-multi:
maintainer-clean-multi: maintainer-clean-multi:
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables. # 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. # Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: .NOEXPORT:
...@@ -45,6 +45,9 @@ details. */ ...@@ -45,6 +45,9 @@ details. */
#include <java/io/PrintStream.h> #include <java/io/PrintStream.h>
#include <java/io/InputStream.h> #include <java/io/InputStream.h>
#define SystemClass _CL_Q34java4lang6System
extern java::lang::Class SystemClass;
#if defined (ECOS) #if defined (ECOS)
...@@ -175,9 +178,13 @@ java::lang::System::identityHashCode (jobject obj) ...@@ -175,9 +178,13 @@ java::lang::System::identityHashCode (jobject obj)
void void
java::lang::System::init_properties (void) java::lang::System::init_properties (void)
{ {
if (prop_init) {
return; // We only need to synchronize around this gatekeeper.
prop_init = true; JvSynchronize sync (&SystemClass);
if (prop_init)
return;
prop_init = true;
}
properties = new java::util::Properties (); properties = new java::util::Properties ();
// A convenience define. // A convenience define.
......
...@@ -71,22 +71,17 @@ COMPPATH = @COMPPATH@ ...@@ -71,22 +71,17 @@ COMPPATH = @COMPPATH@
CPP = @CPP@ CPP = @CPP@
CXX = @CXX@ CXX = @CXX@
CXXCPP = @CXXCPP@ CXXCPP = @CXXCPP@
DLLTOOL = @DLLTOOL@
EH_COMMON_INCLUDE = @EH_COMMON_INCLUDE@ EH_COMMON_INCLUDE = @EH_COMMON_INCLUDE@
EXEEXT = @EXEEXT@ EXEEXT = @EXEEXT@
GCDEPS = @GCDEPS@ GCDEPS = @GCDEPS@
GCINCS = @GCINCS@ GCINCS = @GCINCS@
GCLIBS = @GCLIBS@ GCLIBS = @GCLIBS@
GCOBJS = @GCOBJS@ GCOBJS = @GCOBJS@
LD = @LD@
LIBGCJ_CFLAGS = @LIBGCJ_CFLAGS@ LIBGCJ_CFLAGS = @LIBGCJ_CFLAGS@
LIBGCJ_CXXFLAGS = @LIBGCJ_CXXFLAGS@ LIBGCJ_CXXFLAGS = @LIBGCJ_CXXFLAGS@
LIBGCJ_JAVAFLAGS = @LIBGCJ_JAVAFLAGS@ LIBGCJ_JAVAFLAGS = @LIBGCJ_JAVAFLAGS@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
MAINT = @MAINT@ MAINT = @MAINT@
MAKEINFO = @MAKEINFO@ MAKEINFO = @MAKEINFO@
NM = @NM@
PACKAGE = @PACKAGE@ PACKAGE = @PACKAGE@
PERL = @PERL@ PERL = @PERL@
RANLIB = @RANLIB@ RANLIB = @RANLIB@
...@@ -234,7 +229,6 @@ clean-am: clean-generic mostlyclean-am ...@@ -234,7 +229,6 @@ clean-am: clean-generic mostlyclean-am
clean: clean-am clean: clean-am
distclean-am: distclean-generic clean-am distclean-am: distclean-generic clean-am
-rm -f libtool
distclean: distclean-am distclean: distclean-am
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment