File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 19
19
include :
20
20
- name : x86_64-pc-windows-msvc
21
21
target : x86_64-pc-windows-msvc
22
- nobgt : 0
22
+ nobgt : 1
23
23
no_tests : 1
24
24
tag : windows-latest
25
25
- name : x86_64-apple-darwin
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ macro_rules! r {
69
69
match stringify!( $id) {
70
70
"background_thread" |
71
71
"max_background_threads"
72
- if cfg!( target_os = "macos" ) => return ,
72
+ if cfg!( target_os = "macos" ) || cfg! ( windows ) => return ,
73
73
_ => ( ) ,
74
74
}
75
75
@@ -117,7 +117,7 @@ macro_rules! w {
117
117
match stringify!( $id) {
118
118
"background_thread" |
119
119
"max_background_threads"
120
- if cfg!( target_os = "macos" ) => return ,
120
+ if cfg!( target_os = "macos" ) || cfg! ( windows ) => return ,
121
121
_ => ( ) ,
122
122
}
123
123
@@ -167,7 +167,7 @@ macro_rules! u {
167
167
match stringify!( $id) {
168
168
"background_thread" |
169
169
"max_background_threads"
170
- if cfg!( target_os = "macos" ) => return ,
170
+ if cfg!( target_os = "macos" ) || cfg! ( windows ) => return ,
171
171
_ => ( ) ,
172
172
}
173
173
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub static UNSUPPORTED_TARGETS: &[&str] = &[
12
12
pub static UNTESTED_TARGETS : & [ & str ] = & [ "openbsd" , "msvc" ] ;
13
13
14
14
/// `jemalloc`'s background_thread support is known not to work on these targets:
15
- pub static NO_BG_THREAD_TARGETS : & [ & str ] = & [ "musl" ] ;
15
+ pub static NO_BG_THREAD_TARGETS : & [ & str ] = & [ "musl" , "windows" ] ;
16
16
17
17
/// targets that don't support unprefixed `malloc`
18
18
// “it was found that the `realpath` function in libc would allocate with libc malloc
Original file line number Diff line number Diff line change 2
2
//! library was compiled with background thread run-time support.
3
3
#![ cfg( feature = "background_threads_runtime_support" ) ]
4
4
#![ cfg( not( feature = "unprefixed_malloc_on_supported_platforms" ) ) ]
5
- #![ cfg( not( target_env = "musl" ) ) ]
5
+ #![ cfg( not( any ( windows , target_env = "musl" ) ) ) ]
6
6
7
7
use tikv_jemallocator:: Jemalloc ;
8
8
You can’t perform that action at this time.
0 commit comments