On Thu, 5 Mar 2026 16:10:05 GMT, Chen Liang <[email protected]> wrote:
>> src/java.base/share/classes/java/lang/runtime/ObjectMethods.java line 487:
>>
>>> 485: * full privilege access}.
>>> 486: * When used with {@code invokedynamic}, this is
>>> stacked
>>> 487: * automatically by the VM.
>>
>> Not sure about the text "this is stacked automatically". What is "stacked"?
>> I can guess, but does a reader know?
>>
>> I think what you're trying to say here is that the VM provides a lookup
>> object with the right privileges automatically. Do we have some existing
>> text that explains the bootstrap protocol? A lookup being passed
>> automatically is common to all BSM invocations through indy, so I think
>> having a central place that describes this makes sense (and then we could
>> just link to it from here).
>
> This text is originally copied from `LambdaMetafactory`. I am fine with
> removing the "When used" sentence.
Removed these redundant text.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/30067#discussion_r2891107551