Remove runtime platform checks #267

Merged
jwharm merged 2 commits from remove-platform-checks into main 2025-08-30 22:26:07 +02:00
jwharm commented 2025-08-30 22:25:04 +02:00 (Migrated from github.com)

This PR removes the runtime check for supported platforms. The check would throw an UnsupportedPlatformException when your runtime platform wasn't supported. Without the check, a NullPointerException will be thrown (because the MethodHandle will be null). So the actual benefit of the check was really small, but it complicated the code generator and incurred a bit of runtime overhead.

This PR removes the runtime check for supported platforms. The check would throw an `UnsupportedPlatformException` when your runtime platform wasn't supported. Without the check, a `NullPointerException` will be thrown (because the MethodHandle will be null). So the actual benefit of the check was really small, but it complicated the code generator and incurred a bit of runtime overhead.
Sign in to join this conversation.
No description provided.