RFR: 8314502: Change the comparator taking version of GrowableArray::find to be a template method [v7]

Afshin Zafari azafari at openjdk.org
Tue Oct 24 10:48:01 UTC 2023


> 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.

Afshin Zafari has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains seven commits:

 - Merge remote-tracking branch 'upstream/master' into _8314502
 - first arg of `find` casted to `uint*`
 - Merge branch 'master' into _8314502
 - changed the `E` param of find methods to `const E&`.
 - find_from_end and its caller are also updated.
 - 8314502: Change the comparator taking version of GrowableArray::find to be a template method
 - 8314502: GrowableArray: Make find with comparator take template

-------------

Changes: https://git.openjdk.org/jdk/pull/15418/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15418&range=06
  Stats: 23 lines in 10 files changed: 2 ins; 1 del; 20 mod
  Patch: https://git.openjdk.org/jdk/pull/15418.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15418/head:pull/15418

PR: https://git.openjdk.org/jdk/pull/15418


More information about the serviceability-dev mailing list