> Currently, to efficiently check if a `ClassEntry`, such as one from an
> `InvokeInstruction`, is of a particular class, we use such a pattern (as seen
> in JEP 486 [Appendix](https://openjdk.org/jeps/486#Appendix)):
>
> inst.owner().name().equalsString("java/lang/System")
>
> This pattern has
On Tue, 22 Oct 2024 22:58:10 GMT, ExE Boss wrote:
> I think it might be a good idea to also have `equalsSymbol(…)` methods for
> the other pool entries.
Indeed, this can avoid promotion to String state for all applicable symbols. I
decide to start with the ClassEntry as this is the most error-
On Tue, 22 Oct 2024 14:43:14 GMT, Chen Liang wrote:
>> Currently, to efficiently check if a `ClassEntry`, such as one from an
>> `InvokeInstruction`, is of a particular class, we use such a pattern (as
>> seen in JEP 486 [Appendix](https://openjdk.org/jeps/486#Appendix)):
>>
>> inst.owner().na
> Currently, to efficiently check if a `ClassEntry`, such as one from an
> `InvokeInstruction`, is of a particular class, we use such a pattern (as seen
> in JEP 486 [Appendix](https://openjdk.org/jeps/486#Appendix)):
>
> inst.owner().name().equalsString("java/lang/System")
>
> This pattern has
On Wed, 16 Oct 2024 05:58:08 GMT, Chen Liang wrote:
>> src/java.base/share/classes/jdk/internal/classfile/impl/AbstractPoolEntry.java
>> line 609:
>>
>>> 607: var mySym = this.sym;
>>> 608: if (mySym != null)
>>> 609: return mySym.equals(symbol);
>>
>> N
> Currently, to efficiently check if a `ClassEntry`, such as one from an
> `InvokeInstruction`, is of a particular class, we use such a pattern (as seen
> in JEP 486 [Appendix](https://openjdk.org/jeps/486#Appendix)):
>
> inst.owner().name().equalsString("java/lang/System")
>
> This pattern has
On Tue, 15 Oct 2024 17:34:53 GMT, Chen Liang wrote:
> Currently, to efficiently check if a `ClassEntry`, such as one from an
> `InvokeInstruction`, is of a particular class, we use such a pattern (as seen
> in JEP 486 [Appendix](https://openjdk.org/jeps/486#Appendix)):
>
> inst.owner().name().
Currently, to efficiently check if a `ClassEntry`, such as one from an
`InvokeInstruction`, is of a particular class, we use such a pattern (as seen
in JEP 486 [Appendix](https://openjdk.org/jeps/486#Appendix)):
inst.owner().name().equalsString("java/lang/System")
This pattern has a few issues: