mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
Merge branch 'dev3' with arena_t definition in types.h
This commit is contained in:
commit
1263f62b29
17 changed files with 455 additions and 275 deletions
|
@ -848,7 +848,7 @@ bool _mi_prim_thread_is_in_threadpool(void) {
|
|||
if (win_major_version >= 6) {
|
||||
// check if this thread belongs to a windows threadpool
|
||||
// see: <https://www.geoffchappell.com/studies/windows/km/ntoskrnl/inc/api/pebteb/teb/index.htm>
|
||||
_TEB* const teb = NtCurrentTeb();
|
||||
struct _TEB* const teb = NtCurrentTeb();
|
||||
void* const pool_data = *((void**)((uint8_t*)teb + (MI_SIZE_BITS == 32 ? 0x0F90 : 0x1778)));
|
||||
return (pool_data != NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue