SILENT KILLERPanel

Current Path: > > opt > alt > python312 > include > python3.12 > internal


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python312/include/python3.12/internal

NameTypeSizeLast ModifiedActions
pycore_abstract.h File 611 bytes June 03 2025 15:41:47.
pycore_asdl.h File 3035 bytes June 03 2025 15:41:47.
pycore_ast.h File 31288 bytes June 03 2025 15:41:47.
pycore_ast_state.h File 6749 bytes June 03 2025 15:41:47.
pycore_atexit.h File 1149 bytes June 03 2025 15:41:47.
pycore_atomic.h File 16979 bytes June 03 2025 15:41:47.
pycore_atomic_funcs.h File 2438 bytes June 03 2025 15:41:47.
pycore_bitutils.h File 6062 bytes June 03 2025 15:41:47.
pycore_blocks_output_buffer.h File 8688 bytes June 03 2025 15:41:47.
pycore_bytes_methods.h File 3384 bytes June 03 2025 15:41:47.
pycore_bytesobject.h File 1339 bytes June 03 2025 15:41:47.
pycore_call.h File 3920 bytes June 03 2025 15:41:47.
pycore_ceval.h File 5265 bytes June 03 2025 15:41:47.
pycore_ceval_state.h File 2744 bytes June 03 2025 15:41:47.
pycore_code.h File 15835 bytes June 03 2025 15:41:47.
pycore_compile.h File 3453 bytes June 03 2025 15:41:47.
pycore_condvar.h File 2909 bytes June 03 2025 15:41:47.
pycore_context.h File 1301 bytes June 03 2025 15:41:47.
pycore_descrobject.h File 499 bytes June 03 2025 15:41:47.
pycore_dict.h File 6384 bytes June 03 2025 15:41:47.
pycore_dict_state.h File 1095 bytes June 03 2025 15:41:47.
pycore_dtoa.h File 1615 bytes June 03 2025 15:41:47.
pycore_emscripten_signal.h File 562 bytes June 03 2025 15:41:47.
pycore_exceptions.h File 842 bytes June 03 2025 15:41:47.
pycore_faulthandler.h File 2220 bytes June 03 2025 15:41:47.
pycore_fileutils.h File 7910 bytes June 03 2025 15:41:47.
pycore_fileutils_windows.h File 2724 bytes June 03 2025 15:41:47.
pycore_floatobject.h File 1578 bytes June 03 2025 15:41:47.
pycore_flowgraph.h File 4630 bytes June 03 2025 15:41:47.
pycore_format.h File 480 bytes June 03 2025 15:41:47.
pycore_frame.h File 9255 bytes June 03 2025 15:41:47.
pycore_function.h File 611 bytes June 03 2025 15:41:47.
pycore_gc.h File 7658 bytes June 03 2025 15:41:47.
pycore_genobject.h File 1186 bytes June 03 2025 15:41:47.
pycore_getopt.h File 490 bytes June 03 2025 15:41:47.
pycore_gil.h File 1565 bytes June 03 2025 15:41:47.
pycore_global_objects.h File 3035 bytes June 03 2025 15:41:47.
pycore_global_objects_fini_generated.h File 115361 bytes June 03 2025 15:41:47.
pycore_global_strings.h File 25438 bytes June 03 2025 15:41:47.
pycore_hamt.h File 3742 bytes June 03 2025 15:41:47.
pycore_hashtable.h File 4286 bytes June 03 2025 15:41:47.
pycore_import.h File 6358 bytes June 03 2025 15:41:47.
pycore_initconfig.h File 5706 bytes June 03 2025 15:41:47.
pycore_instruments.h File 2998 bytes June 03 2025 15:41:47.
pycore_interp.h File 9086 bytes June 03 2025 15:41:47.
pycore_intrinsics.h File 1397 bytes June 03 2025 15:41:47.
pycore_list.h File 1980 bytes June 03 2025 15:41:47.
pycore_long.h File 7805 bytes June 03 2025 15:41:47.
pycore_memoryobject.h File 383 bytes June 03 2025 15:41:47.
pycore_moduleobject.h File 1192 bytes June 03 2025 15:41:47.
pycore_namespace.h File 392 bytes June 03 2025 15:41:47.
pycore_object.h File 14917 bytes June 03 2025 15:41:47.
pycore_object_state.h File 1016 bytes June 03 2025 15:41:47.
pycore_obmalloc.h File 27284 bytes June 03 2025 15:41:47.
pycore_obmalloc_init.h File 2085 bytes June 03 2025 15:41:47.
pycore_opcode.h File 20081 bytes June 03 2025 15:41:47.
pycore_opcode_utils.h File 2686 bytes June 03 2025 15:41:47.
pycore_parser.h File 1358 bytes June 03 2025 15:41:47.
pycore_pathconfig.h File 606 bytes June 03 2025 15:41:47.
pycore_pyarena.h File 2733 bytes June 03 2025 15:41:47.
pycore_pyerrors.h File 3110 bytes June 03 2025 15:41:47.
pycore_pyhash.h File 709 bytes June 03 2025 15:41:47.
pycore_pylifecycle.h File 3365 bytes June 03 2025 15:41:47.
pycore_pymath.h File 8600 bytes June 03 2025 15:41:47.
pycore_pymem.h File 3040 bytes June 03 2025 15:41:47.
pycore_pymem_init.h File 2654 bytes June 03 2025 15:41:47.
pycore_pystate.h File 4982 bytes June 03 2025 15:41:47.
pycore_pythread.h File 2075 bytes June 03 2025 15:41:47.
pycore_range.h File 346 bytes June 03 2025 15:41:47.
pycore_runtime.h File 8429 bytes June 03 2025 15:41:47.
pycore_runtime_init.h File 5912 bytes June 03 2025 15:41:47.
pycore_runtime_init_generated.h File 45751 bytes June 03 2025 15:41:47.
pycore_signal.h File 2611 bytes June 03 2025 15:41:47.
pycore_sliceobject.h File 414 bytes June 03 2025 15:41:47.
pycore_strhex.h File 937 bytes June 03 2025 15:41:47.
pycore_structseq.h File 923 bytes June 03 2025 15:41:47.
pycore_symtable.h File 7035 bytes June 03 2025 15:41:47.
pycore_sysmodule.h File 999 bytes June 03 2025 15:41:47.
pycore_time.h File 388 bytes June 03 2025 15:41:47.
pycore_token.h File 3050 bytes June 03 2025 15:41:47.
pycore_traceback.h File 3501 bytes June 03 2025 15:41:47.
pycore_tracemalloc.h File 3075 bytes June 03 2025 15:41:47.
pycore_tuple.h File 2197 bytes June 03 2025 15:41:47.
pycore_typeobject.h File 4731 bytes June 03 2025 15:41:47.
pycore_typevarobject.h File 763 bytes June 03 2025 15:41:47.
pycore_ucnhash.h File 898 bytes June 03 2025 15:41:47.
pycore_unicodeobject.h File 2657 bytes June 03 2025 15:41:47.
pycore_unicodeobject_generated.h File 125516 bytes June 03 2025 15:41:47.
pycore_unionobject.h File 682 bytes June 03 2025 15:41:47.
pycore_warnings.h File 740 bytes June 03 2025 15:41:47.

Reading File: //opt/alt/python312/include/python3.12/internal/pycore_pymem.h

#ifndef Py_INTERNAL_PYMEM_H
#define Py_INTERNAL_PYMEM_H
#ifdef __cplusplus
extern "C" {
#endif

#ifndef Py_BUILD_CORE
#  error "this header requires Py_BUILD_CORE define"
#endif

#include "pymem.h"      // PyMemAllocatorName


typedef struct {
    /* We tag each block with an API ID in order to tag API violations */
    char api_id;
    PyMemAllocatorEx alloc;
} debug_alloc_api_t;

struct _pymem_allocators {
    PyThread_type_lock mutex;
    struct {
        PyMemAllocatorEx raw;
        PyMemAllocatorEx mem;
        PyMemAllocatorEx obj;
    } standard;
    struct {
        debug_alloc_api_t raw;
        debug_alloc_api_t mem;
        debug_alloc_api_t obj;
    } debug;
    PyObjectArenaAllocator obj_arena;
};


/* Set the memory allocator of the specified domain to the default.
   Save the old allocator into *old_alloc if it's non-NULL.
   Return on success, or return -1 if the domain is unknown. */
PyAPI_FUNC(int) _PyMem_SetDefaultAllocator(
    PyMemAllocatorDomain domain,
    PyMemAllocatorEx *old_alloc);

/* Special bytes broadcast into debug memory blocks at appropriate times.
   Strings of these are unlikely to be valid addresses, floats, ints or
   7-bit ASCII.

   - PYMEM_CLEANBYTE: clean (newly allocated) memory
   - PYMEM_DEADBYTE dead (newly freed) memory
   - PYMEM_FORBIDDENBYTE: untouchable bytes at each end of a block

   Byte patterns 0xCB, 0xDB and 0xFB have been replaced with 0xCD, 0xDD and
   0xFD to use the same values than Windows CRT debug malloc() and free().
   If modified, _PyMem_IsPtrFreed() should be updated as well. */
#define PYMEM_CLEANBYTE      0xCD
#define PYMEM_DEADBYTE       0xDD
#define PYMEM_FORBIDDENBYTE  0xFD

/* Heuristic checking if a pointer value is newly allocated
   (uninitialized), newly freed or NULL (is equal to zero).

   The pointer is not dereferenced, only the pointer value is checked.

   The heuristic relies on the debug hooks on Python memory allocators which
   fills newly allocated memory with CLEANBYTE (0xCD) and newly freed memory
   with DEADBYTE (0xDD). Detect also "untouchable bytes" marked
   with FORBIDDENBYTE (0xFD). */
static inline int _PyMem_IsPtrFreed(const void *ptr)
{
    uintptr_t value = (uintptr_t)ptr;
#if SIZEOF_VOID_P == 8
    return (value == 0
            || value == (uintptr_t)0xCDCDCDCDCDCDCDCD
            || value == (uintptr_t)0xDDDDDDDDDDDDDDDD
            || value == (uintptr_t)0xFDFDFDFDFDFDFDFD);
#elif SIZEOF_VOID_P == 4
    return (value == 0
            || value == (uintptr_t)0xCDCDCDCD
            || value == (uintptr_t)0xDDDDDDDD
            || value == (uintptr_t)0xFDFDFDFD);
#else
#  error "unknown pointer size"
#endif
}

PyAPI_FUNC(int) _PyMem_GetAllocatorName(
    const char *name,
    PyMemAllocatorName *allocator);

/* Configure the Python memory allocators.
   Pass PYMEM_ALLOCATOR_DEFAULT to use default allocators.
   PYMEM_ALLOCATOR_NOT_SET does nothing. */
PyAPI_FUNC(int) _PyMem_SetupAllocators(PyMemAllocatorName allocator);


#ifdef __cplusplus
}
#endif
#endif /* !Py_INTERNAL_PYMEM_H */

SILENT KILLER Tool