GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GH-104909: Split `LOAD_ATTR_INSTANCE_VALUE` into micro-ops by markshannon · Pull Request #106678 · python/cpython

Conversation

@markshannon

@markshannon markshannon commented Jul 12, 2023 •
edited by bedevere-bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member
  • Issue: Split opcodes into micro-ops #104909

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
markshannon added 4 commits June 2, 2023 22:38
@markshannon
Split LOAD_ATTR_INSTANCE_VALUE into micro-ops.
3393618
@markshannon
Merge branch 'main' into split-load-attr
d8e6a88
@markshannon
Add news
e334701
@markshannon
Merge branch 'main' into split-load-attr
f4838ab
@bedevere-bot bedevere-bot added the awaiting core review label Jul 12, 2023
@bedevere-bot bedevere-bot mentioned this pull request Jul 12, 2023
Split opcodes into micro-ops #104909
Closed
markshannon added 2 commits July 12, 2023 14:36
@markshannon
Merge branch 'main' into split-load-attr
bfe4e76
@markshannon
Allow micro-ops to be shared between instructions.
731f7b8
@markshannon

markshannon commented Jul 12, 2023 •
edited by gvanrossum
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

I've change the code generator to allow micro-ops to be shared between instructions.

@gvanrossum Why was that prohibited?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gvanrossum

gvanrossum commented Jul 12, 2023

Copy link
Copy Markdown
Member

I've change the code generator to allow micro-ops to be shared between instructions.

@gvanrossum Why was that prohibited?

It was just a piece of technical debt, nothing deep. There was some complication and I was initially lazy and put a data structure on the micro-op itself instead of associating it with the connection beween the macro and the op.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

iritkatriel
iritkatriel reviewed Jul 12, 2023
View reviewed changes
Comment thread Python/bytecodes.c Resolved

Uh oh!

There was an error while loading. Please reload this page.

markshannon added 2 commits July 13, 2023 00:40
@markshannon
Address review comment and make micro-op names a bit more consistent.
5b33fcb
@markshannon
Merge branch 'main' into split-load-attr
a844492
iritkatriel
iritkatriel requested changes Jul 13, 2023
View reviewed changes

@iritkatriel iritkatriel left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

There are merge conflicts, and my comment above.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-bot bedevere-bot added awaiting changes and removed awaiting core review labels Jul 13, 2023
@bedevere-bot

bedevere-bot commented Jul 13, 2023

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@markshannon markshannon removed the awaiting changes label Jul 13, 2023
@markshannon

markshannon commented Jul 13, 2023

Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot bedevere-bot added the awaiting change review label Jul 13, 2023
@bedevere-bot

bedevere-bot commented Jul 13, 2023

Copy link
Copy Markdown

Thanks for making the requested changes!

@iritkatriel: please review the changes made to this pull request.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot
bedevere-bot requested a review from iritkatriel July 13, 2023 14:37
iritkatriel
iritkatriel approved these changes Jul 13, 2023
View reviewed changes
@bedevere-bot bedevere-bot added awaiting merge and removed awaiting change review labels Jul 13, 2023
gvanrossum
gvanrossum approved these changes Jul 13, 2023
View reviewed changes
@markshannon
markshannon merged commit 487861c into python:main Jul 13, 2023
@bedevere-bot bedevere-bot removed the awaiting merge label Jul 13, 2023
@bedevere-bot

bedevere-bot commented Jul 13, 2023

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot ARM64 macOS 3.x has failed when building commit 487861c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/725/builds/5000) and take a look at the build logs.
  4. Check if the failure is related to this commit (487861c) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/725/builds/5000

Failed tests:

  • test.test_asyncio.test_ssl
  • test_unittest

Failed subtests:

  • test_create_connection_ssl_failed_certificate - test.test_asyncio.test_ssl.TestSSL.test_create_connection_ssl_failed_certificate
  • test_wait_until_any_call_with_positional - test.test_unittest.testmock.testthreadingmock.TestThreadingMock.test_wait_until_any_call_with_positional

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

424 tests OK.

10 slowest tests:

  • test_signal: 4 min 12 sec
  • test_concurrent_futures: 2 min 28 sec
  • test_multiprocessing_spawn: 1 min 53 sec
  • test_multiprocessing_forkserver: 1 min 31 sec
  • test_logging: 1 min 7 sec
  • test_capi: 41.6 sec
  • test_math: 41.5 sec
  • test_ssl: 40.8 sec
  • test_io: 37.1 sec
  • test_socket: 30.8 sec

1 test failed:
test.test_asyncio.test_ssl

18 tests skipped:
test.test_asyncio.test_windows_events
test.test_asyncio.test_windows_utils test_devpoll test_epoll
test_gdb test_ioctl test_launcher test_multiprocessing_fork
test_perf_profiler test_perfmaps test_startfile test_tkinter
test_ttk test_winconsoleio test_winreg test_winsound test_wmi
test_zipfile64

2 re-run tests:
test.test_asyncio.test_ssl test_unittest

Total duration: 6 min 48 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/test/test_asyncio/test_ssl.py", line 454, in test_create_connection_ssl_failed_certificate
    self.loop.run_until_complete(client(srv.addr))
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/asyncio/base_events.py", line 664, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/test/test_asyncio/test_ssl.py", line 441, in client
    reader, writer = await asyncio.open_connection(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/asyncio/streams.py", line 47, in open_connection
    transport, _ = await loop.create_connection(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/asyncio/base_events.py", line 1126, in create_connection
    transport, protocol = await self._create_connection_transport(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/asyncio/base_events.py", line 1159, in _create_connection_transport
    await waiter
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/asyncio/sslproto.py", line 575, in _on_handshake_complete
    raise handshake_exc
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/asyncio/sslproto.py", line 557, in _do_handshake
    self._sslobj.do_handshake()
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/ssl.py", line 917, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:1015)


Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/test/test_unittest/testmock/testthreadingmock.py", line 179, in test_wait_until_any_call_with_positional
    self.assertIn(call(2), something.method_1.mock_calls)
AssertionError: call(2) not found in [call(1), call(3)]
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

kgdiem pushed a commit to kgdiem/cpython that referenced this pull request Jul 14, 2023
@markshannon @kgdiem
pythonGH-104909: Split LOAD_ATTR_INSTANCE_VALUE into micro-ops (pyt…
1601141
…honGH-106678)
gvanrossum pushed a commit to gvanrossum/cpython that referenced this pull request Jul 15, 2023
@markshannon @gvanrossum
pythonGH-104909: Split LOAD_ATTR_INSTANCE_VALUE into micro-ops (pyt…
08c9b5c
…honGH-106678)
@markshannon
markshannon deleted the split-load-attr branch August 6, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@iritkatriel iritkatriel iritkatriel approved these changes
@gvanrossum gvanrossum gvanrossum approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@markshannon @gvanrossum @bedevere-bot @iritkatriel
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.