From bef041a268a8c865fb413128da347af5f98bc709 Mon Sep 17 00:00:00 2001 From: ubu32 Date: Mon, 7 Mar 2011 08:08:07 -0800 Subject: [PATCH] small updates --- H/rglobals.h | 1 + H/rhstruct.h | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/H/rglobals.h b/H/rglobals.h index e82f495a1..db993bae5 100644 --- a/H/rglobals.h +++ b/H/rglobals.h @@ -60,6 +60,7 @@ static void RestoreWorker(int wid USES_REGS) { + FOREIGN_WL(wid)->global_arena = TermToGlobalOrAtomAdjust(FOREIGN_WL(wid)->global_arena); diff --git a/H/rhstruct.h b/H/rhstruct.h index 9d6a0becd..b6b268ef3 100644 --- a/H/rhstruct.h +++ b/H/rhstruct.h @@ -74,9 +74,9 @@ - RestoreInvisibleAtoms( PASS_REGS1 ); - RestoreWideAtoms( PASS_REGS1 ); - RestoreAtoms( PASS_REGS1 ); + RestoreInvisibleAtoms(); + RestoreWideAtoms(); + RestoreAtoms(); #include "ratoms.h" #ifdef EUROTRA @@ -106,7 +106,7 @@ - RestorePredHash( PASS_REGS1 ); + RestorePredHash(); #if defined(YAPOR) || defined(THREADS) #endif @@ -204,10 +204,10 @@ #if defined(YAPOR) || defined(THREADS) REINIT_LOCK(Yap_heap_regs->dbterms_list_lock); #endif - RestoreDBTermsList( PASS_REGS1 ); + RestoreDBTermsList(); - RestoreExpandList( PASS_REGS1 ); + RestoreExpandList(); #if defined(YAPOR) || defined(THREADS) REINIT_LOCK(Yap_heap_regs->expand_clauses_list_lock); @@ -227,9 +227,9 @@ - RestoreIntKeys( PASS_REGS1 ); - RestoreIntLUKeys( PASS_REGS1 ); - RestoreIntBBKeys( PASS_REGS1 ); + RestoreIntKeys(); + RestoreIntLUKeys(); + RestoreIntBBKeys(); @@ -240,11 +240,11 @@ RestoreDBErasedMarker(); RestoreLogDBErasedMarker(); - RestoreDeadStaticClauses( PASS_REGS1 ); - RestoreDeadMegaClauses( PASS_REGS1 ); - RestoreDeadStaticIndices( PASS_REGS1 ); - RestoreDBErasedList( PASS_REGS1 ); - RestoreDBErasedIList( PASS_REGS1 ); + RestoreDeadStaticClauses(); + RestoreDeadMegaClauses(); + RestoreDeadStaticIndices(); + RestoreDBErasedList(); + RestoreDBErasedIList(); #if defined(YAPOR) || defined(THREADS) REINIT_LOCK(Yap_heap_regs->dead_static_clauses_lock); REINIT_LOCK(Yap_heap_regs->dead_mega_clauses_lock); @@ -294,9 +294,9 @@ - RestoreYapRecords( PASS_REGS1 ); + RestoreYapRecords(); - RestoreSWIAtoms( PASS_REGS1 ); + RestoreSWIAtoms();