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

Continued re-design of paranoid mode (now called Runtime Type Check) #15437

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ziaptos
Copy link
Contributor

@ziaptos ziaptos commented Dec 2, 2024

Moving towards static implementation of the paranoid mode switch, allowing for compiler optimizations.

How Has This Been Tested?

Existing tests

Key Areas to Review

Make sure the end to end functionality is NOT changed.

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Performance improvement
  • Refactoring
  • Dependency update
  • Documentation update
  • Tests

Which Components or Systems Does This Change Impact?

  • Validator Node
  • Full Node (API, Indexer, etc.)
  • Move/Aptos Virtual Machine
  • Aptos Framework
  • Aptos CLI/SDK
  • Developer Infrastructure
  • Move Compiler
  • Other (specify)

Checklist

  • I have read and followed the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I identified and added all stakeholders and component owners affected by this change as reviewers
  • I tested both happy and unhappy path of the functionality
  • I have made corresponding changes to the documentation

Copy link

trunk-io bot commented Dec 2, 2024

⏱️ 23m total CI duration on this PR
Job Cumulative Duration Recent Runs
rust-move-tests 13m 🟩
check-dynamic-deps 3m 🟩🟩
rust-cargo-deny 3m 🟩
rust-move-tests 1m
general-lints 56s 🟩🟩
semgrep/ci 53s 🟩🟩
file_change_determinator 23s 🟩🟩
permission-check 7s 🟩🟩
permission-check 6s 🟩🟩

settingsfeedbackdocs ⋅ learn more about trunk.io

@@ -29,6 +29,12 @@ pub(crate) trait RuntimeTypeCheck {
ty_cache: &mut FrameTypeCache,
instruction: &Bytecode,
) -> PartialVMResult<()>;

/// Pranoid check that operand and type stacks have the same size
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in docstring: Pranoid -> Paranoid. This maintains consistency with terminology used throughout the codebase.

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

@@ -29,6 +29,12 @@ pub(crate) trait RuntimeTypeCheck {
ty_cache: &mut FrameTypeCache,
instruction: &Bytecode,
) -> PartialVMResult<()>;

/// Paranoid check that operand and type stacks have the same size
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: .s in the end of docstrings

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.

2 participants