* Fixed incompatibility problems of Java DPL with JDK7, so DPL will now work with JDK7. * Added a flag to allow database locking to be disabled from the SQL API. * Fixed a bug that could allocate a heap data page in a region after the region creation has been undone. * Redundant whitespaces are now ignored in DB_CONFIG lines pertaining to directories, e.g. set_data_dir. * Fixed a bug that caused DB_ENV->backup to stop early if DB_BACKUP_FILES was not set and a non-DB file was in the data directory. * Fixed a rare race condition that could cause a crash if two processes opened the same database at the same time. * Fixed missing cross compiling capability for the JDBC driver. * Allow the same system/machine to host both a master and a replica database through the use of relative pathnames. * Fixed a bug in the Java API where EnvironmentConfig.setCreateDir would fail to configure the environment. * Fixed an assert failure in btreeCompare when allocating memory in the wrong thread was causing a memory leak. * Fixed a bug in the Java API where concurrent operations that change the database schema could lead to a hang. * Added JDBC code to the code base and updated the windows build files to include the JDBC solution. * Fixed a bug where the heap's region size was not getting swapped correctly in mixed-endian environments. * Fixed a bug in the db_sql_jdbc project file for vs2010 that was preventing it from building correctly.
24 lines
919 B
C
24 lines
919 B
C
$NetBSD: patch-src_dbinc_atomic.h,v 1.1 2012/05/31 09:37:21 adam Exp $
|
|
|
|
Avoid 'definition of builtin function' error.
|
|
|
|
--- src/dbinc/atomic.h.orig 2012-05-30 14:59:06.000000000 +0000
|
|
+++ src/dbinc/atomic.h
|
|
@@ -144,7 +144,7 @@ typedef LONG volatile *interlocked_val;
|
|
#define atomic_inc(env, p) __atomic_inc(p)
|
|
#define atomic_dec(env, p) __atomic_dec(p)
|
|
#define atomic_compare_exchange(env, p, o, n) \
|
|
- __atomic_compare_exchange((p), (o), (n))
|
|
+ __atomic_compare_exchange_db((p), (o), (n))
|
|
static inline int __atomic_inc(db_atomic_t *p)
|
|
{
|
|
int temp;
|
|
@@ -176,7 +176,7 @@ static inline int __atomic_dec(db_atomic
|
|
* http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
|
|
* which configure could be changed to use.
|
|
*/
|
|
-static inline int __atomic_compare_exchange(
|
|
+static inline int __atomic_compare_exchange_db(
|
|
db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
|
|
{
|
|
atomic_value_t was;
|