Make asan instrumentation in mj_(mark|free)Stack cheaper.

Symbolization and string comparison results are now cached.

PiperOrigin-RevId: 564697198
Change-Id: I0447f283a90143e2f67ecd90d895a36a078b3981
This commit is contained in:
Saran Tunyasuvunakool
2023-09-12 06:05:15 -07:00
committed by Copybara-Service
parent 2b192cebb6
commit 2f14a7c102
5 changed files with 115 additions and 57 deletions
+12
View File
@@ -75,4 +75,16 @@
#define mjUNLIKELY(x) (x)
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef ADDRESS_SANITIZER
int _mj_comparePcFuncName(void* pc1, void* pc2);
#endif
#ifdef __cplusplus
} // extern "C"
#endif
#endif // MUJOCO_SRC_ENGINE_ENGINE_CROSSPLATFORM_H_