Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[redo] Dump CFG in RPO order before Parsing. #90

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Conversation

navyxliu
Copy link
Owner

We drop this patch when we merge from master. This patch dumps the CFG in RPO right before parsing if -XX:+Verbose.
eg.

Parsing method virtual jobject jdk.nio.zipfs.ZipFileSystem.getInflater() {
********************************************************
TypeFlow for getInflater  55 bytes
   0 aload_0
   1 getfield 81 <jdk/nio/zipfs/ZipFileSystem.inflaters:Ljava/util/List;>
   4 dup
   5 astore_1
   6 monitorenter
  ====================================================
  #0  rpo#0  [0 - 7) Stored locals: { 1 }

  State : locals 4, stack 0, monitors 0
    local  0 : jdk/nio/zipfs/ZipFileSystem
    local  1 : bottom
    local  2 : bottom
    local  3 : bottom
  Successors : 1
    #1  rpo#1  [7 - 21)
  No predecessor information
  Exceptions : 0
  ====================================================
--------------------------------------------------------

   7 aload_0
   8 getfield 81 <jdk/nio/zipfs/ZipFileSystem.inflaters:Ljava/util/List;>
  11 invokeinterface 1474 <java/util/List.size()I>
  0    bci: 11   VirtualCallData    count(0) entries(0)
  16 istore_2
  17 iload_2
  18 ifle 39
  48   bci: 18   BranchData         taken(0) displacement(128)
                                    not taken(0)
  ====================================================
  #1  rpo#1  [7 - 21) Stored locals: { 2 }

  State : locals 4, stack 0, monitors 1
    local  0 : jdk/nio/zipfs/ZipFileSystem
    local  1 : java/util/List
    local  2 : bottom
    local  3 : bottom
  Successors : 2
    #6  rpo#2  [21 - 38)
    #4  rpo#4  [39 - 49)
  Predecessors : 1
    #0  rpo#0  [0 - 7)
  Exceptions : 1
    #2  rpo#6  [50 - 53) -- java/lang/Throwable
  ====================================================
--------------------------------------------------------

@navyxliu navyxliu merged commit 52a9e94 into PEA_beta Jan 19, 2024
80 of 89 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant