Skip to content

Commit aa9593d

Browse files
committed
wip
1 parent bb3a3a7 commit aa9593d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/native.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ ScmObj Scm__VMCallNative(ScmVM *vm,
417417
entry, win_prolog_end, win_frame_size);
418418
xpad_pdata = get_entry_address(vm->codeCache,
419419
(char*)codepad + realcodesize);
420-
//RtlAddFunctionTable((PRUNTIME_FUNCTION)(void*)xpad_pdata, 1,
421-
//(DWORD64)vm->codeCache->xpad->ptr);
420+
RtlAddFunctionTable((PRUNTIME_FUNCTION)(void*)xpad_pdata, 1,
421+
(DWORD64)vm->codeCache->xpad->ptr);
422422
}
423423
#endif
424424

@@ -455,7 +455,7 @@ ScmObj Scm__VMCallNative(ScmVM *vm,
455455
} SCM_WHEN_ERROR {
456456
#if defined(GAUCHE_WINDOWS)
457457
if (xpad_pdata) {
458-
//RtlDeleteFunctionTable((PRUNTIME_FUNCTION)(void*)xpad_pdata);
458+
RtlDeleteFunctionTable((PRUNTIME_FUNCTION)(void*)xpad_pdata);
459459
}
460460
#endif
461461
free_code_cache(vm, codepad);
@@ -464,7 +464,7 @@ ScmObj Scm__VMCallNative(ScmVM *vm,
464464

465465
#if defined(GAUCHE_WINDOWS)
466466
if (xpad_pdata) {
467-
//RtlDeleteFunctionTable((PRUNTIME_FUNCTION)(void*)xpad_pdata);
467+
RtlDeleteFunctionTable((PRUNTIME_FUNCTION)(void*)xpad_pdata);
468468
}
469469
#endif
470470
free_code_cache(vm, codepad);

0 commit comments

Comments
 (0)