Remove LOCAL_WPP.

This commit is contained in:
Joao 2011-05-05 09:32:04 +01:00
parent feb27c1e6e
commit 65a514349f
7 changed files with 0 additions and 12 deletions

View File

@ -2196,9 +2196,6 @@ YAP_EnterGoal(PredEntry *pe, Term *ptr, YAP_dogoalinfo *dgi)
CP = YESCODE; CP = YESCODE;
B = myB; B = myB;
HB = H; HB = H;
#if defined(YAPOR) || defined(THREADS)
LOCAL_WPP = NULL;
#endif
ASP = YENV = (CELL *)B; ASP = YENV = (CELL *)B;
YENV[E_CB] = Unsigned (B); YENV[E_CB] = Unsigned (B);
out = run_emulator(dgi); out = run_emulator(dgi);

View File

@ -1048,9 +1048,6 @@ init_stack(int arity, CELL *pt, int top, choiceptr saved_b USES_REGS)
#endif /* DEPTH_LIMIT */ #endif /* DEPTH_LIMIT */
YENV = ASP = (CELL *)B; YENV = ASP = (CELL *)B;
HB = H; HB = H;
#if defined(YAPOR) || defined(THREADS)
LOCAL_WPP = NULL;
#endif
/* start with some slots so that we can use them */ /* start with some slots so that we can use them */
Yap_StartSlots( PASS_REGS1 ); Yap_StartSlots( PASS_REGS1 );
CP = YESCODE; CP = YESCODE;
@ -1662,7 +1659,6 @@ Yap_InitYaamRegs(void)
LOCAL_GcPhase = Yap_NewTimedVar(MkIntTerm(LOCAL_GcCurrentPhase)); LOCAL_GcPhase = Yap_NewTimedVar(MkIntTerm(LOCAL_GcCurrentPhase));
#if defined(YAPOR) || defined(THREADS) #if defined(YAPOR) || defined(THREADS)
PP = NULL; PP = NULL;
LOCAL_WPP = NULL;
PREG_ADDR = NULL; PREG_ADDR = NULL;
#endif #endif
Yap_AllocateDefaultArena(128*1024, 2); Yap_AllocateDefaultArena(128*1024, 2);

View File

@ -83,7 +83,6 @@
#if defined(YAPOR) || defined(THREADS) #if defined(YAPOR) || defined(THREADS)
#define LOCAL_SignalLock WL->signal_lock #define LOCAL_SignalLock WL->signal_lock
#define LOCAL_WPP WL->wpp
#define LOCAL_total_marked WL->tot_marked #define LOCAL_total_marked WL->tot_marked
#define LOCAL_total_oldies WL->tot_oldies #define LOCAL_total_oldies WL->tot_oldies

View File

@ -85,7 +85,6 @@ typedef struct worker_local {
#if defined(YAPOR) || defined(THREADS) #if defined(YAPOR) || defined(THREADS)
lockvar signal_lock; lockvar signal_lock;
struct pred_entry* wpp;
Int tot_marked; Int tot_marked;
Int tot_oldies; Int tot_oldies;

View File

@ -83,7 +83,6 @@ static void InitWorker(int wid) {
#if defined(YAPOR) || defined(THREADS) #if defined(YAPOR) || defined(THREADS)
INIT_LOCK(FOREIGN(wid)->signal_lock); INIT_LOCK(FOREIGN(wid)->signal_lock);
FOREIGN(wid)->wpp = NULL;
FOREIGN(wid)->tot_marked = 0L; FOREIGN(wid)->tot_marked = 0L;
FOREIGN(wid)->tot_oldies = 0L; FOREIGN(wid)->tot_oldies = 0L;

View File

@ -86,7 +86,6 @@ static void RestoreWorker(int wid USES_REGS) {
#if DEBUG && COROUTINING #if DEBUG && COROUTINING
#endif #endif

View File

@ -92,7 +92,6 @@ int consult_level_ LOCAL_consult_level =0
// global variables that cannot be global in a thread/or-p implementation // global variables that cannot be global in a thread/or-p implementation
#if defined(YAPOR) || defined(THREADS) #if defined(YAPOR) || defined(THREADS)
lockvar signal_lock LOCAL_SignalLock MkLock lockvar signal_lock LOCAL_SignalLock MkLock
struct pred_entry* wpp LOCAL_WPP =NULL
/* in a single gc */ /* in a single gc */
Int tot_marked LOCAL_total_marked =0L Int tot_marked LOCAL_total_marked =0L
Int tot_oldies LOCAL_total_oldies =0L Int tot_oldies LOCAL_total_oldies =0L