Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a field to a store a OMRThreadMCSNodes pointer in J9Thread
Related: #4086.

The code is wrapped using OMR_THR_MCS_LOCKS ifdefs.

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
  • Loading branch information
babsingh committed Oct 24, 2019
1 parent 3f4ee6f commit 904ecbb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion include_core/omrthread_generated.h
Expand Up @@ -173,10 +173,18 @@ typedef struct J9ThreadTracing {
uintptr_t lockedmonitorcount; \
omrthread_os_errno_t os_errno;

#if defined(OMR_THR_MCS_LOCKS)
#define J9_ABSTRACT_THREAD_FIELDS_4 \
omrthread_mcs_nodes_t mcsNodes;
#else /* defined(OMR_THR_MCS_LOCKS) */
#define J9_ABSTRACT_THREAD_FIELDS_4
#endif /* defined(OMR_THR_MCS_LOCKS) */

#define J9_ABSTRACT_THREAD_FIELDS \
J9_ABSTRACT_THREAD_FIELDS_1 \
J9_ABSTRACT_THREAD_FIELDS_2 \
J9_ABSTRACT_THREAD_FIELDS_3
J9_ABSTRACT_THREAD_FIELDS_3 \
J9_ABSTRACT_THREAD_FIELDS_4

typedef struct J9ThreadMonitorTracing {
char *monitor_name;
Expand Down

0 comments on commit 904ecbb

Please sign in to comment.