Skip to content

Commit

Permalink
Merge pull request mono#3698 from alexrp/profiler-c9-fixes
Browse files Browse the repository at this point in the history
More C9 profiler fixes
  • Loading branch information
alexrp authored Oct 3, 2016
2 parents 30c55b9 + d88f911 commit a49db8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mono/profiler/mono-profiler-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#endif
#include <fcntl.h>
#ifdef HAVE_LINK_H
#include <link.h>
#endif
Expand All @@ -58,8 +59,11 @@

/* Worst-case size in bytes of a 64-bit value encoded with LEB128. */
#define LEB128_SIZE 10

/* Size of a value encoded as a single byte. */
#undef BYTE_SIZE // mach/i386/vm_param.h on OS X defines this to 8, but it isn't used for anything.
#define BYTE_SIZE 1

/* Size in bytes of the event prefix (ID + time). */
#define EVENT_SIZE (BYTE_SIZE + LEB128_SIZE)

Expand Down Expand Up @@ -735,7 +739,7 @@ static __thread MonoProfilerThread *profiler_tls;
#define PROF_TLS_SET(VAL) (pthread_setspecific (profiler_tls, (VAL)))
#define PROF_TLS_GET() ((MonoProfilerThread *) pthread_getspecific (profiler_tls))
#define PROF_TLS_INIT() (pthread_key_create (&profiler_tls, NULL))
#define PROF_TLS_FREE() (pthread_key_delete (&profiler_tls))
#define PROF_TLS_FREE() (pthread_key_delete (profiler_tls))

static pthread_key_t profiler_tls;

Expand Down

0 comments on commit a49db8f

Please sign in to comment.