Skip to content

Commit

Permalink
Add OMRMEM_CATEGORY_9_CHILDREN macro
Browse files Browse the repository at this point in the history
This is needed by OpenJ9, see
eclipse-openj9/openj9#5891

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
  • Loading branch information
pshipton committed May 27, 2019
1 parent 04189c0 commit 69fece5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include_core/omrmemcategories.h
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2010, 2016 IBM Corp. and others
* Copyright (c) 2010, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -115,6 +115,9 @@ typedef struct OMRMemCategorySet {
#define OMRMEM_CATEGORY_8_CHILDREN(description, code, c1, c2, c3, c4, c5, c6, c7, c8) \
static uint32_t _omrmem_##code##_child_categories[] = {c1, c2, c3, c4, c5, c6, c7, c8}; \
static OMRMemCategory _omrmem_category_##code = {description, code, 0, 0, 8, _omrmem_##code##_child_categories}
#define OMRMEM_CATEGORY_9_CHILDREN(description, code, c1, c2, c3, c4, c5, c6, c7, c8, c9) \
static uint32_t _omrmem_##code##_child_categories[] = {c1, c2, c3, c4, c5, c6, c7, c8, c9}; \
static OMRMemCategory _omrmem_category_##code = {description, code, 0, 0, 9, _omrmem_##code##_child_categories}

#define CATEGORY_TABLE_ENTRY(name) &_omrmem_category_##name

Expand Down

0 comments on commit 69fece5

Please sign in to comment.