mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-07 03:56:43 +08:00
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:
parent
0fff422242
commit
cf6b8de459
@ -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
453
libjava/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user