Line data Source code
1 : #include "fd_scratch.h" 2 : 3 : FD_TL int fd_scratch_in_prepare; /* 0 on thread start */ 4 : 5 : FD_TL ulong fd_scratch_private_start; /* 0UL on thread start */ 6 : FD_TL ulong fd_scratch_private_free; /* 0UL on thread start */ 7 : FD_TL ulong fd_scratch_private_stop; /* 0UL on thread start */ 8 : 9 : FD_TL ulong * fd_scratch_private_frame; /* NULL on thread start */ 10 : FD_TL ulong fd_scratch_private_frame_cnt; /* 0UL on thread start */ 11 : FD_TL ulong fd_scratch_private_frame_max; /* 0UL on thread start */ 12 : 13 : #if FD_HAS_ALLOCA 14 : FD_TL ulong fd_alloca_check_private_sz; 15 : #endif 16 : 17 : /* fd_valloc virtual function table */ 18 : 19 : void * 20 : fd_scratch_malloc_virtual( void * _self, 21 : ulong align, 22 240975 : ulong sz ) { 23 240975 : (void)_self; 24 240975 : return fd_scratch_alloc( align, sz ); 25 240975 : } 26 : 27 : void 28 : fd_scratch_free_virtual( void * _self, 29 10329 : void * _addr ) { 30 10329 : (void)_self; (void)_addr; 31 10329 : } 32 : 33 : const fd_valloc_vtable_t 34 : fd_scratch_vtable = { 35 : .malloc = fd_scratch_malloc_virtual, 36 : .free = fd_scratch_free_virtual 37 : };