RFR: 8329750: Change Universe functions to return more specific Klass* types [v3]

Stefan Karlsson stefank at openjdk.org
Mon Apr 8 13:46:32 UTC 2024


> We have various functions in Universe that returns Klass* where they could be returning TypeArrayKlass* and ObjArrayKlass* instead. If we change these functions we could get rid of some casts in the code. Does this seem like a reasonable change?

Stefan Karlsson has updated the pull request incrementally with one additional commit since the last revision:

  Revert "Update src/hotspot/share/classfile/systemDictionary.cpp
"
  
  This reverts commit d36f650dc3bf9729cd8bd138d23bef3dfdb8e4d2.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/18652/files
  - new: https://git.openjdk.org/jdk/pull/18652/files/d36f650d..36bef547

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=18652&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18652&range=01-02

  Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/18652.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18652/head:pull/18652

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


More information about the hotspot-dev mailing list