On Wed, 15 Dec 2021 17:15:46 GMT, Vladimir Kozlov <[email protected]> wrote:
>> src/hotspot/share/oops/method.cpp line 827:
>>
>>> 825: */
>>> 826: bool Method::can_omit_stack_trace() {
>>> 827: if
>>> (method_holder()->class_loader_data()->is_boot_class_loader_data()) {
>>
>> Do you actually need to check this?
>
> @dholmes-ora, thank you for looking on it.
> I discussed it with Mandy and agreed that we need to narrow down this
> workaround as much as possible. That is why it is done only for system class
> loaded by null loader.
David has a good observation. There will be no split package for modules. So
sun.invoke.util classes will only be loaded from java.base. The boot loader is
not needed.
-------------
PR: https://git.openjdk.java.net/jdk18/pull/27