forked from OSchip/llvm-project
[TSAN][Darwin] x86_64 specific tests requiring weak symbols
Additional tests requiring weak symbol attribute work around for macOS 12.0 Differential Revision: https://reviews.llvm.org/D131119
This commit is contained in:
parent
71ebcd3348
commit
42c15ca630
|
@ -2,7 +2,11 @@
|
||||||
#include "java.h"
|
#include "java.h"
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
|
|
||||||
extern "C" __attribute__((disable_sanitizer_instrumentation)) void
|
#if (__APPLE__)
|
||||||
|
__attribute__((weak)) // Required for dyld macOS 12.0+
|
||||||
|
#endif
|
||||||
|
__attribute__((disable_sanitizer_instrumentation))
|
||||||
|
extern "C" void
|
||||||
__tsan_symbolize_external_ex(jptr pc,
|
__tsan_symbolize_external_ex(jptr pc,
|
||||||
void (*add_frame)(void *, const char *,
|
void (*add_frame)(void *, const char *,
|
||||||
const char *, int, int),
|
const char *, int, int),
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
#include "java.h"
|
#include "java.h"
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
|
|
||||||
extern "C" __attribute__((disable_sanitizer_instrumentation)) bool
|
#if (__APPLE__)
|
||||||
|
__attribute__((weak)) // Required for dyld macOS 12.0+
|
||||||
|
#endif
|
||||||
|
__attribute__((disable_sanitizer_instrumentation))
|
||||||
|
extern "C" bool
|
||||||
__tsan_symbolize_external(jptr pc, char *func_buf, jptr func_siz,
|
__tsan_symbolize_external(jptr pc, char *func_buf, jptr func_siz,
|
||||||
char *file_buf, jptr file_siz, int *line, int *col) {
|
char *file_buf, jptr file_siz, int *line, int *col) {
|
||||||
if (pc == (1234 | kExternalPCBit)) {
|
if (pc == (1234 | kExternalPCBit)) {
|
||||||
|
|
Loading…
Reference in New Issue