mirror of
https://github.com/openharmony/resourceschedule_qos_manager.git
synced 2026-07-01 04:18:38 -04:00
qos FDSAN adapt cross_plateform
Signed-off-by: liuyuxiu <liuyuxiu2@huawei.com>
This commit is contained in:
@@ -21,8 +21,10 @@
|
||||
uint64_t GetAddrTag(void* addr)
|
||||
{
|
||||
uint64_t tag = 0;
|
||||
#if !defined(CROSS_PLATFORM)
|
||||
if (addr != nullptr) {
|
||||
tag = fdsan_create_owner_tag(FDSAN_OWNER_TYPE_FILE, (uint64_t)addr);
|
||||
}
|
||||
#endif
|
||||
return tag;
|
||||
}
|
||||
Reference in New Issue
Block a user