RFR: 8314502: GrowableArray: Make find with comparator take template
David Holmes
dholmes at openjdk.org
Fri Aug 25 02:44:16 UTC 2023
On Thu, 24 Aug 2023 14:09:46 GMT, Afshin Zafari <azafari at openjdk.org> wrote:
> The `find` method now is
> ```C++
> template<typename T>
> int find(T* token, bool f(T*, E)) const {
> ...
>
> Any other functions which use this are also changed.
> Local linux-x64-debug hotspot:tier1 passed. Mach5 tier1 build on linux and Windows passed.
src/hotspot/share/utilities/growableArray.hpp line 213:
> 211:
> 212: template<typename T>
> 213: int find(T* token, bool f(T*, E)) const {
Pardon my ignorance here, but what is the type relationship between T and E?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15418#discussion_r1305066166
More information about the serviceability-dev
mailing list