Port async-profiler#1701: optimize nmethod type checks by jbachorik · Pull Request #423 · DataDog/java-profiler

@jbachorik @claude

Replace strcmp/strncmp calls in isNMethod/isInterpreter/isStub/isVTableStub
with an inline startsWith template and a pointer comparison for isInterpreter,
matching upstream async-profiler cc0eab1.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

@jbachorik added the AI label

Mar 19, 2026

@jbachorik jbachorik marked this pull request as ready for review

March 19, 2026 20:37

zhengyu123

@jbachorik @claude

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>