RFR: 8264538: Rename SystemDictionary::parse_stream [v3]

Coleen Phillimore coleenp at openjdk.java.net
Wed Mar 31 21:41:39 UTC 2021


> This function is used to call the classfile parser for hidden or anonymous classes, and for use with jvmti RedefineClasses. The latter only calls KlassFactory::create_from_stream and skips the rest of the code in SystemDictionary::parse_stream.
> 
> Renamed SystemDictionary::parse_stream -> resolve_hidden_class_from_stream
> resolve_from_stream -> resolve_class_from_stream
> and have SystemDictionary::resolve_from_stream() call the right version depending on ClassLoadInfo flags.  Callers of resolve_from_stream now pass protection domain via. ClassLoadInfo.
> 
> So the external API is resolve_from_stream.
> 
> Tested with tier1 on 4 Oracle supported platforms.

Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:

  Add and remove comments.

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/3289/files
  - new: https://git.openjdk.java.net/jdk/pull/3289/files/8dfcb093..cd49552a

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3289&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3289&range=01-02

  Stats: 9 lines in 2 files changed: 2 ins; 7 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3289.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3289/head:pull/3289

PR: https://git.openjdk.java.net/jdk/pull/3289


More information about the serviceability-dev mailing list