Skip to content

Add OMR_ISSPACE macro for Open XL - #8017

Merged
babsingh merged 1 commit into
eclipse-omr:masterfrom
Deigue:omr-isspace
Nov 18, 2025
Merged

Add OMR_ISSPACE macro for Open XL#8017
babsingh merged 1 commit into
eclipse-omr:masterfrom
Deigue:omr-isspace

Conversation

@Deigue

@Deigue Deigue commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

Replaces usage of isspace() with OMR_ISSPACE()
This conditionally uses __isspace_a() on z/OS platforms, to properly handle ASCII input.

@0xdaryl

0xdaryl commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

@keithc-ca : please review

@0xdaryl 0xdaryl added the ddr label Nov 4, 2025

@keithc-ca keithc-ca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are other uses of isspace() that should, perhaps, be changed to use OMR_ISSPACE(). I can't think of reasons for isspace to occur anywhere in this repository other than in omrcomp.h. As I searched, I also found uses of isdigit() that probably should have been replaced by OMR_ISDIGIT().

Deigue added a commit to Deigue/openj9 that referenced this pull request Nov 10, 2025
OMR_ISSPACE is a macro that provides a more flexible implementation to
find spaces for a given parameter. It will conditionally use the BIMODAL
function `__isspace_a()` when the ASCII version of the function is
required on z/OS.

This depends on: eclipse-omr/omr#8017

Signed-off-by: Gaurav Chaudhari <Gaurav.Chaudhari@ibm.com>
@Deigue
Deigue force-pushed the omr-isspace branch 2 times, most recently from 6e917ac to 56dbe0a Compare November 10, 2025 16:56
@Deigue
Deigue marked this pull request as draft November 10, 2025 20:17
Replaces usage of isspace() with OMR_ISSPACE()
This conditionally  uses __isspace_a() on z/OS platforms,
to properly handle ASCII input.

Also updates some isdigit() references to OMR_ISDIGIT()

Signed-off-by: Gaurav Chaudhari <Gaurav.Chaudhari@ibm.com>
@Deigue
Deigue marked this pull request as ready for review November 11, 2025 16:35
@Deigue
Deigue requested a review from keithc-ca November 11, 2025 16:36
Deigue added a commit to Deigue/openj9 that referenced this pull request Nov 14, 2025
OMR_ISSPACE is a macro that provides a more flexible implementation to
find spaces for a given parameter. It will conditionally use the BIMODAL
function `__isspace_a()` when the ASCII version of the function is
required on z/OS.

This depends on: eclipse-omr/omr#8017

Signed-off-by: Gaurav Chaudhari <Gaurav.Chaudhari@ibm.com>
Deigue added a commit to Deigue/openj9 that referenced this pull request Nov 14, 2025
OMR_ISSPACE is a macro that provides a more flexible implementation to
find spaces for a given parameter. It will conditionally use the BIMODAL
function `__isspace_a()` when the ASCII version of the function is
required on z/OS.

This depends on: eclipse-omr/omr#8017

Signed-off-by: Gaurav Chaudhari <Gaurav.Chaudhari@ibm.com>
Deigue added a commit to Deigue/omr that referenced this pull request Nov 17, 2025
@babsingh

Copy link
Copy Markdown
Contributor

jenkins build all

@babsingh
babsingh merged commit b410b44 into eclipse-omr:master Nov 18, 2025
14 checks passed
Deigue added a commit to Deigue/openj9 that referenced this pull request Nov 19, 2025
OMR_ISSPACE is a macro that provides a more flexible implementation to
find spaces for a given parameter. It will conditionally use the BIMODAL
function `__isspace_a()` when the ASCII version of the function is
required on z/OS.

This depends on: eclipse-omr/omr#8017

Signed-off-by: Gaurav Chaudhari <Gaurav.Chaudhari@ibm.com>
annaibm pushed a commit to annaibm/openj9 that referenced this pull request Mar 19, 2026
OMR_ISSPACE is a macro that provides a more flexible implementation to
find spaces for a given parameter. It will conditionally use the BIMODAL
function `__isspace_a()` when the ASCII version of the function is
required on z/OS.

This depends on: eclipse-omr/omr#8017

Signed-off-by: Gaurav Chaudhari <Gaurav.Chaudhari@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants