Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • asm asm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • asmasm
  • asmasm
  • Merge requests
  • !368

Add a hook in ClassReader to allow subclasses to get the bytecode offset of visited instructions.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Eric Bruneton requested to merge 317982-add-classreader-hook-to-get-bytecode-instruction-offsets into master Dec 11, 2022
  • Overview 4
  • Commits 2
  • Pipelines 2
  • Changes 2

Closes #317982 (closed). I propose to add this hook to address #317982 (closed). Users can override ClassReader, store the last visited offset in a field, and read this field from each visitXxx method in MethodVisitor to get the bytecode offset of each instruction. I checked that this does not impact performance with the AdapterBenchmark.read_asmCurrent JMH benchmark.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 317982-add-classreader-hook-to-get-bytecode-instruction-offsets