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
4 changed files with 245 additions and 232 deletions
|
@ -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>
|
2001-05-23 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* Makefile.in: Rebuilt.
|
* 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
|
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)
|
||||||
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)
|
||||||
_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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue