Commit cf6b8de4 by Tom Tromey Committed by Tom Tromey

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
parent 0fff4222
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> 2001-05-23 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
......
...@@ -75,12 +75,6 @@ AC_ARG_ENABLE(hash-synchronization, ...@@ -75,12 +75,6 @@ AC_ARG_ENABLE(hash-synchronization,
if test -z "$enable_hash_synchronization"; then if test -z "$enable_hash_synchronization"; then
enable_hash_synchronization=$enable_hash_synchronization_default enable_hash_synchronization=$enable_hash_synchronization_default
fi 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. dnl See if the user has requested runtime debugging.
...@@ -359,6 +353,15 @@ AC_SUBST(THREADDEPS) ...@@ -359,6 +353,15 @@ AC_SUBST(THREADDEPS)
AC_SUBST(THREADOBJS) AC_SUBST(THREADOBJS)
AC_SUBST(THREADSPEC) 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) AM_CONDITIONAL(USING_GCC, test "$GCC" = yes)
CANADIAN=no CANADIAN=no
......
...@@ -691,7 +691,7 @@ alloc_heavy(obj_addr_t addr, hash_entry *he) ...@@ -691,7 +691,7 @@ alloc_heavy(obj_addr_t addr, hash_entry *he)
_Jv_MutexInit (&(hl -> si.mutex)); _Jv_MutexInit (&(hl -> si.mutex));
_Jv_CondInit (&(hl -> si.condition)); _Jv_CondInit (&(hl -> si.condition));
# if defined (_Jv_HaveCondDestroy) || defined (_Jv_HaveMutexDestroy) # if defined (_Jv_HaveCondDestroy) || defined (_Jv_HaveMutexDestroy)
si->init = true; // needed ? hl->si.init = true; // needed ?
# endif # endif
hl -> next = he -> heavy_locks; hl -> next = he -> heavy_locks;
he -> heavy_locks = hl; he -> heavy_locks = hl;
......
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