Skip to content

Commit 54f6cd6

Browse files
Remove unused buffer
1 parent e50ff65 commit 54f6cd6

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

Include/internal/pycore_interp_structs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,6 @@ struct _is {
959959
// End Jit tracing state
960960
bool jit;
961961
bool compiling;
962-
struct _PyUOpInstruction *jit_uop_buffer;
963962
struct _PyExecutorObject *executor_list_head;
964963
struct _PyExecutorObject *executor_deletion_list_head;
965964
struct _PyExecutorObject *cold_executor;

Python/optimizer.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,12 +1195,6 @@ uop_optimize(
11951195
{
11961196
_PyBloomFilter *dependencies = &tstate->interp->jit_tracer_dependencies;
11971197
PyInterpreterState *interp = _PyInterpreterState_GET();
1198-
if (interp->jit_uop_buffer == NULL) {
1199-
interp->jit_uop_buffer = (_PyUOpInstruction *)_PyObject_VirtualAlloc(UOP_BUFFER_SIZE);
1200-
if (interp->jit_uop_buffer == NULL) {
1201-
return 0;
1202-
}
1203-
}
12041198
_PyUOpInstruction *buffer = interp->jit_tracer_code_buffer;
12051199
OPT_STAT_INC(attempts);
12061200
char *env_var = Py_GETENV("PYTHON_UOPS_OPTIMIZE");

Python/pystate.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,6 @@ init_interpreter(PyInterpreterState *interp,
553553
#endif
554554

555555
#ifdef _Py_TIER2
556-
// Ensure the buffer is to be set as NULL.
557-
interp->jit_uop_buffer = NULL;
558556
interp->jit_tracer_code_buffer = NULL;
559557
interp->jit_tracer_initial_instr = NULL;
560558
interp->jit_tracer_initial_stack_depth = -1;
@@ -810,10 +808,6 @@ interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate)
810808

811809
#ifdef _Py_TIER2
812810
_Py_ClearExecutorDeletionList(interp);
813-
if (interp->jit_uop_buffer != NULL) {
814-
_PyObject_VirtualFree(interp->jit_uop_buffer, UOP_BUFFER_SIZE);
815-
interp->jit_uop_buffer = NULL;
816-
}
817811
if (interp->jit_tracer_code_buffer != NULL) {
818812
_PyObject_VirtualFree(interp->jit_tracer_code_buffer, UOP_BUFFER_SIZE);
819813
interp->jit_tracer_code_buffer = NULL;

0 commit comments

Comments
 (0)