Skip to content

Commit 83c154d

Browse files
Davi ArnautDavi Arnaut
Davi Arnaut
authored and
Davi Arnaut
committed
Bug#34043: Server loops excessively in _checkchunk() when safemalloc is enabled
Post-merge fix: remove leftovers from safemalloc removal.
1 parent c225cde commit 83c154d

File tree

3 files changed

+0
-37
lines changed

3 files changed

+0
-37
lines changed

include/my_sys.h

-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ extern int my_umask_dir,
253253
my_safe_to_handle_signal, /* Set when allowed to SIGTSTP */
254254
my_dont_interrupt; /* call remember_intr when set */
255255
extern my_bool my_use_symdir;
256-
extern size_t sf_malloc_cur_memory, sf_malloc_max_memory;
257256

258257
extern ulong my_default_record_cache_size;
259258
extern my_bool my_disable_locking, my_disable_async_io,

mysys/my_static.c

-13
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,6 @@ my_bool my_use_large_pages= 0;
6565
uint my_large_page_size= 0;
6666
#endif
6767

68-
/* from safe_malloc */
69-
uint sf_malloc_prehunc=0, /* If you have problem with core- */
70-
sf_malloc_endhunc=0, /* dump when malloc-message.... */
71-
/* set theese to 64 or 128 */
72-
sf_malloc_quick=0; /* set if no calls to sanity */
73-
size_t sf_malloc_cur_memory= 0L; /* Current memory usage */
74-
size_t sf_malloc_max_memory= 0L; /* Maximum memory usage */
75-
uint sf_malloc_count= 0; /* Number of times NEW() was called */
76-
uchar *sf_min_adress= (uchar*) ~(unsigned long) 0L,
77-
*sf_max_adress= (uchar*) 0L;
78-
/* Root of the linked list of struct st_irem */
79-
struct st_irem *sf_malloc_root = NULL;
80-
8168
/* from my_alarm */
8269
int volatile my_have_got_alarm=0; /* declare variable to reset */
8370
ulong my_time_to_wait_for_lock=2; /* In seconds */

mysys/my_static.h

-23
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,6 @@ struct st_remember {
3434
sig_handler (*func)(int number);
3535
};
3636

37-
/*
38-
Structure that stores information of a allocated memory block
39-
The data is at &struct_adr+sizeof(ALIGN_SIZE(sizeof(struct irem)))
40-
The lspecialvalue is at the previous 4 bytes from this, which may not
41-
necessarily be in the struct if the struct size isn't aligned at a 8 byte
42-
boundary.
43-
*/
44-
45-
struct st_irem
46-
{
47-
struct st_irem *next; /* Linked list of structures */
48-
struct st_irem *prev; /* Other link */
49-
char *filename; /* File in which memory was new'ed */
50-
size_t datasize; /* Size requested */
51-
uint32 linenum; /* Line number in above file */
52-
uint32 SpecialValue; /* Underrun marker value */
53-
};
54-
55-
5637
extern char curr_dir[FN_REFLEN], home_dir_buff[FN_REFLEN];
5738

5839
extern volatile int _my_signals;
@@ -63,10 +44,6 @@ extern const char *soundex_map;
6344
extern USED_MEM* my_once_root_block;
6445
extern uint my_once_extra;
6546

66-
extern uchar *sf_min_adress,*sf_max_adress;
67-
extern uint sf_malloc_count;
68-
extern struct st_irem *sf_malloc_root;
69-
7047
extern struct st_my_file_info my_file_info_default[MY_NFILE];
7148

7249
extern ulonglong query_performance_frequency, query_performance_offset;

0 commit comments

Comments
 (0)