configure.in: Only allow hash synchronization when POSIX threads are enabled.

* configure.in: Only allow hash synchronization when POSIX threads
	are enabled.
	* java/lang/natObject.cc (alloc_heavy): Properly find `init' field
	of sync info object.

From-SVN: r42530
This commit is contained in:
Tom Tromey 2001-05-24 18:03:47 +00:00 committed by Tom Tromey
parent 0fff422242
commit cf6b8de459
4 changed files with 245 additions and 232 deletions

View File

@ -1,3 +1,10 @@
2001-05-24 Tom Tromey <tromey@redhat.com>
* configure.in: Only allow hash synchronization when POSIX threads
are enabled.
* java/lang/natObject.cc (alloc_heavy): Properly find `init' field
of sync info object.
2001-05-23 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt.

453
libjava/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -75,12 +75,6 @@ AC_ARG_ENABLE(hash-synchronization,
if test -z "$enable_hash_synchronization"; then
enable_hash_synchronization=$enable_hash_synchronization_default
fi
HASH_SYNC_SPEC=
if test "$enable_hash_synchronization" = yes; then
HASH_SYNC_SPEC=-fhash-synchronization
AC_DEFINE(JV_HASH_SYNCHRONIZATION)
fi
AC_SUBST(HASH_SYNC_SPEC)
dnl See if the user has requested runtime debugging.
@ -359,6 +353,15 @@ AC_SUBST(THREADDEPS)
AC_SUBST(THREADOBJS)
AC_SUBST(THREADSPEC)
HASH_SYNC_SPEC=
# Hash synchronization is only useful with posix threads right now.
if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
HASH_SYNC_SPEC=-fhash-synchronization
AC_DEFINE(JV_HASH_SYNCHRONIZATION)
fi
AC_SUBST(HASH_SYNC_SPEC)
AM_CONDITIONAL(USING_GCC, test "$GCC" = yes)
CANADIAN=no

View File

@ -691,7 +691,7 @@ alloc_heavy(obj_addr_t addr, hash_entry *he)
_Jv_MutexInit (&(hl -> si.mutex));
_Jv_CondInit (&(hl -> si.condition));
# if defined (_Jv_HaveCondDestroy) || defined (_Jv_HaveMutexDestroy)
si->init = true; // needed ?
hl->si.init = true; // needed ?
# endif
hl -> next = he -> heavy_locks;
he -> heavy_locks = hl;