Skip to content

Commit

Permalink
Merge pull request #17187 from jonoommen/addHierarchicalScanOrderingW…
Browse files Browse the repository at this point in the history
…ithBalancedWarning

Add Unsupported Warning for Hierarchical Scan Ordering with Balanced
  • Loading branch information
dmitripivkine committed May 3, 2023
2 parents aa5727e + 71a3cd1 commit 0fe9c4b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtime/gc_vlhgc/ConfigurationIncrementalGenerational.cpp
Expand Up @@ -28,6 +28,7 @@

#include "j9.h"
#include "j9cfg.h"
#include "modronnls.h"

#include "ConfigurationIncrementalGenerational.hpp"

Expand Down Expand Up @@ -278,6 +279,10 @@ MM_ConfigurationIncrementalGenerational::initialize(MM_EnvironmentBase *env)
if (result) {
if (MM_GCExtensions::OMR_GC_SCAVENGER_SCANORDERING_NONE == extensions->scavengerScanOrdering) {
extensions->scavengerScanOrdering = MM_GCExtensions::OMR_GC_SCAVENGER_SCANORDERING_DYNAMIC_BREADTH_FIRST;
} else if (MM_GCExtensions::OMR_GC_SCAVENGER_SCANORDERING_HIERARCHICAL == extensions->scavengerScanOrdering) {
PORT_ACCESS_FROM_ENVIRONMENT(env);
j9nls_printf(PORTLIB, J9NLS_WARNING, J9NLS_GC_OPTIONS_HIERARCHICAL_SCAN_ORDERING_NOT_SUPPORTED_WARN, "balanced");
extensions->scavengerScanOrdering = MM_GCExtensions::OMR_GC_SCAVENGER_SCANORDERING_DYNAMIC_BREADTH_FIRST;
}
extensions->setVLHGC(true);
}
Expand Down
8 changes: 8 additions & 0 deletions runtime/nls/j9gc/j9modron.nls
Expand Up @@ -979,3 +979,11 @@ J9NLS_GC_THREAD_VALUE_MUST_BE_ABOVE_WARN.user_response=Refer to the OpenJ9 docum
J9NLS_GC_THREAD_VALUE_MUST_BE_ABOVE_WARN.sample_input_1=4

# END NON-TRANSLATABLE

J9NLS_GC_OPTIONS_HIERARCHICAL_SCAN_ORDERING_NOT_SUPPORTED_WARN=Unsupported -Xgc:hierarchicalScanOrdering option with -Xgcpolicy:%s will be ignored.
# START NON-TRANSLATABLE
J9NLS_GC_OPTIONS_HIERARCHICAL_SCAN_ORDERING_NOT_SUPPORTED_WARN.explanation=-Xgc:hierarchicalScanOrdering is currently only supported with -Xgcpolicy:gencon.
J9NLS_GC_OPTIONS_HIERARCHICAL_SCAN_ORDERING_NOT_SUPPORTED_WARN.system_action=The JVM ignores the -Xgc:hierarchicalScanOrdering option.
J9NLS_GC_OPTIONS_HIERARCHICAL_SCAN_ORDERING_NOT_SUPPORTED_WARN.user_response=Refer to the OpenJ9 documentation for -Xgc:hierarchicalScanOrdering.

# END NON-TRANSLATABLE

0 comments on commit 0fe9c4b

Please sign in to comment.