Diff
Not logged in

Differences From Artifact [455149dc9a]:

To Artifact [8e176e6c24]:


1079
1080
1081
1082
1083
1084
1085

1086

1087
1088
1089
1090
1091
1092
1093
1094




1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
}

void *
TclInterpAlloc(
    Tcl_Interp *interp,
    unsigned int size)
{

#ifdef USE_THREAD_ALLOC 

    Interp *iPtr = (Interp *)interp;
    void *result;

    if (!iPtr) {
        return Tcl_Alloc(size);
    }

    result = TclAttemptAlloc(iPtr->cachePtr, size);




    if ((result == NULL) && size) {
	Tcl_Panic("unable to alloc %u bytes", size);
    }
    return result;
#else
    return Tcl_Alloc(size);
#endif
}


/*
 *----------------------------------------------------------------------
 *
 * Tcl_AttemptAlloc --







>
|
>

<






>
>
>
>




<
<
<







1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089

1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103



1104
1105
1106
1107
1108
1109
1110
}

void *
TclInterpAlloc(
    Tcl_Interp *interp,
    unsigned int size)
{
    void *result;

#ifndef HAVE_FAST_TSD
    Interp *iPtr = (Interp *)interp;


    if (!iPtr) {
        return Tcl_Alloc(size);
    }

    result = TclAttemptAlloc(iPtr->cachePtr, size);
#else
    /* return Tcl_Alloc(size); */
    result = Tcl_AttemptAlloc(size);
#endif
    if ((result == NULL) && size) {
	Tcl_Panic("unable to alloc %u bytes", size);
    }
    return result;



}


/*
 *----------------------------------------------------------------------
 *
 * Tcl_AttemptAlloc --