As recently shown[1], it's not always clear what value to pass for the phantom_ref parameter when calling JVMCINMethodData::get_nmethod_mirror. The documentation for this method should be clarified.
[1] https://github.com/openjdk/jdk/pull/23573#pullrequestreview-2826394267
[1] https://github.com/openjdk/jdk/pull/23573#pullrequestreview-2826394267