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;
B = myB;
HB = H;
#if defined(YAPOR) || defined(THREADS)
LOCAL_WPP = NULL;
#endif
ASP = YENV = (CELL *)B;
YENV[E_CB] = Unsigned (B);
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 */
YENV = ASP = (CELL *)B;
HB = H;
#if defined(YAPOR) || defined(THREADS)
LOCAL_WPP = NULL;
#endif
/* start with some slots so that we can use them */
Yap_StartSlots( PASS_REGS1 );
CP = YESCODE;
@ -1662,7 +1659,6 @@ Yap_InitYaamRegs(void)
LOCAL_GcPhase = Yap_NewTimedVar(MkIntTerm(LOCAL_GcCurrentPhase));
#if defined(YAPOR) || defined(THREADS)
PP = NULL;
LOCAL_WPP = NULL;
PREG_ADDR = NULL;
#endif
Yap_AllocateDefaultArena(128*1024, 2);

View File

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

View File

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

View File

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

View File

@ -86,7 +86,6 @@ static void RestoreWorker(int wid USES_REGS) {
#if DEBUG && COROUTINING
#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
#if defined(YAPOR) || defined(THREADS)
lockvar signal_lock LOCAL_SignalLock MkLock
struct pred_entry* wpp LOCAL_WPP =NULL
/* in a single gc */
Int tot_marked LOCAL_total_marked =0L
Int tot_oldies LOCAL_total_oldies =0L