throw handler
This commit is contained in:
parent
3fe4b70112
commit
87c6f13976
17
H/rheap.h
17
H/rheap.h
@ -934,9 +934,18 @@ static void RestoreForeignCode__(USES_REGS1) {
|
||||
}
|
||||
}
|
||||
|
||||
static void RestoreBallTerm(int wid) {
|
||||
CACHE_REGS
|
||||
if (LOCAL_BallTerm) {
|
||||
LOCAL_BallTerm = DBTermAdjust(LOCAL_BallTerm);
|
||||
RestoreDBTerm(LOCAL_BallTerm, false, 1 PASS_REGS);
|
||||
}
|
||||
}
|
||||
|
||||
static void RestoreYapRecords__(USES_REGS1) {
|
||||
struct record_list *ptr;
|
||||
|
||||
RestoreBallTerm(worker_id);
|
||||
Yap_Records = DBRecordAdjust(Yap_Records);
|
||||
ptr = Yap_Records;
|
||||
while (ptr) {
|
||||
@ -948,14 +957,6 @@ static void RestoreYapRecords__(USES_REGS1) {
|
||||
}
|
||||
}
|
||||
|
||||
static void RestoreBallTerm(int wid) {
|
||||
CACHE_REGS
|
||||
if (LOCAL_BallTerm) {
|
||||
LOCAL_BallTerm = DBTermAdjust(LOCAL_BallTerm);
|
||||
RestoreDBTerm(LOCAL_BallTerm, false,1 PASS_REGS);
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(THREADS) || defined(YAPOR)
|
||||
#include "rglobals.h"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user