Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8bf7aae2
Commit
8bf7aae2
authored
Apr 15, 2012
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix application verifier crashes
parent
87b6f241
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
mysys/my_init.c
mysys/my_init.c
+4
-1
mysys/my_thr_init.c
mysys/my_thr_init.c
+0
-1
mysys/waiting_threads.c
mysys/waiting_threads.c
+6
-0
No files found.
mysys/my_init.c
View file @
8bf7aae2
...
...
@@ -29,6 +29,7 @@
#pragma comment(lib, "ws2_32")
#endif
my_bool
have_tcpip
=
0
;
extern
pthread_key
(
struct
st_my_thread_var
*
,
THR_KEY_mysys
);
static
void
my_win_init
(
void
);
static
my_bool
win32_init_tcp_ip
();
#else
...
...
@@ -221,7 +222,9 @@ Voluntary context switches %ld, Involuntary context switches %ld\n",
if
(
have_tcpip
)
WSACleanup
();
#endif
/* __WIN__ */
/* At very last, delete mysys key, it is used everywhere including DBUG */
pthread_key_delete
(
THR_KEY_mysys
);
my_init_done
=
0
;
}
/* my_end */
...
...
mysys/my_thr_init.c
View file @
8bf7aae2
...
...
@@ -274,7 +274,6 @@ void my_thread_global_end(void)
*/
if
(
all_threads_killed
)
{
pthread_key_delete
(
THR_KEY_mysys
);
my_thread_destroy_internal_mutex
();
}
my_thread_global_init_done
=
0
;
...
...
mysys/waiting_threads.c
View file @
8bf7aae2
...
...
@@ -423,6 +423,8 @@ static void wt_resource_destroy(uchar *arg)
DBUG_VOID_RETURN
;
}
static
int
wt_init_done
;
void
wt_init
()
{
DBUG_ENTER
(
"wt_init"
);
...
...
@@ -456,18 +458,22 @@ void wt_init()
my_atomic_rwlock_init
(
&
cycle_stats_lock
);
my_atomic_rwlock_init
(
&
success_stats_lock
);
my_atomic_rwlock_init
(
&
wait_stats_lock
);
wt_init_done
=
1
;
DBUG_VOID_RETURN
;
}
void
wt_end
()
{
DBUG_ENTER
(
"wt_end"
);
if
(
!
wt_init_done
)
DBUG_VOID_RETURN
;
DBUG_ASSERT
(
reshash
.
count
==
0
);
lf_hash_destroy
(
&
reshash
);
my_atomic_rwlock_destroy
(
&
cycle_stats_lock
);
my_atomic_rwlock_destroy
(
&
success_stats_lock
);
my_atomic_rwlock_destroy
(
&
wait_stats_lock
);
wt_init_done
=
0
;
DBUG_VOID_RETURN
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment