René's URL Explorer Experiment


Title: Preserve unsafe async reads with packed frame buffers by dgant · Pull Request #106 · JavaBWAPI/JBWAPI · GitHub

Open Graph Title: Preserve unsafe async reads with packed frame buffers by dgant · Pull Request #106 · JavaBWAPI/JBWAPI

X Title: Preserve unsafe async reads with packed frame buffers by dgant · Pull Request #106 · JavaBWAPI/JBWAPI

Description: When unsafe async moves a running bot from the live buffer to a packed frame, #105 can calculate an offset using one layout and read it using the other. Retained Event, Position, Command, and UnitCommand views also keep layout-dependent offsets across the handoff. This can return incorrect data or access invalid native memory. Keep all generated offsets in the original BWAPI layout and translate them inside the selected WrappedBuffer at the primitive/string access. Publish ClientData.buffer through a volatile reference, remove the redundant dynamic overrides, and update the generator. Static-data routing, the four copy ranges, and unsafe async's start-before-copy scheduling stay unchanged. Packed slots remain 4,805,308 bytes instead of 33,017,048 bytes. This PR is based on #105 (a1574049) and targets its implement-memory-safe branch. Validation: Both handoff regression tests fail on #105 and pass with this fix. All 52 tests pass on Java 8, with automatic retries disabled. The new synchronization test holds the first frame copy until the bot starts, proving unsafe overlap is preserved; the game then completes across multiple buffer cycles. All 10 focused AsyncClientData/WrappedBuffer/UnsafeTools tests pass on Java 27. Generator output is byte-for-byte reproducible; existing file line endings are preserved.

Open Graph Description: When unsafe async moves a running bot from the live buffer to a packed frame, #105 can calculate an offset using one layout and read it using the other. Retained Event, Position, Command, and UnitC...

X Description: When unsafe async moves a running bot from the live buffer to a packed frame, #105 can calculate an offset using one layout and read it using the other. Retained Event, Position, Command, and UnitC...

Opengraph URL: https://github.com/JavaBWAPI/JBWAPI/pull/106

X: @github

direct link

Domain: redirect.github.com

IPv4 address: 140.82.112.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2323c942-62c6-91cd-3046-9540efd93c24
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDFB4:FBBFE:83D26C:AAC73F:6B062CD1
html-safe-nonce6e956d440f048f43a63d9761caf5a2996d80aa588993df9dd8cf6621e2964fd1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkI0OkZCQkZFOjgzRDI2QzpBQUM3M0Y6NkIwNjJDRDEiLCJ2aXNpdG9yX2lkIjoiNzM5Mzk2MzU3MTEyMzk4OTcxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7b2b5604d0cfda25ef182468150f0f86dc3abe41b1c7a8f675e944c9c70a5ca7
hovercard-subject-tagpull_request:5193331519
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/JavaBWAPI/JBWAPI/pull/106/files
twitter:imagehttps://avatars.githubusercontent.com/u/116363?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/116363?s=400&v=4
og:image:altWhen unsafe async moves a running bot from the live buffer to a packed frame, #105 can calculate an offset using one layout and read it using the other. Retained Event, Position, Command, and UnitC...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/JavaBWAPI/JBWAPI git https://github.com/JavaBWAPI/JBWAPI.git
octolytics-dimension-user_id46279254
octolytics-dimension-user_loginJavaBWAPI
octolytics-dimension-repository_id149718845
octolytics-dimension-repository_nwoJavaBWAPI/JBWAPI
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id149718845
octolytics-dimension-repository_network_root_nwoJavaBWAPI/JBWAPI
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release494ea0bb1e0feef734a83e2628697647755e8864
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaBWAPI%2FJBWAPI%2Fpull%2F106%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaBWAPI%2FJBWAPI%2Fpull%2F106%2Ffiles
Sign uphttps://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=JavaBWAPI%2FJBWAPI
Reloadhttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
Reloadhttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
Reloadhttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
JavaBWAPIhttps://redirect.github.com/JavaBWAPI
JBWAPIhttps://redirect.github.com/JavaBWAPI/JBWAPI
Codehttps://redirect.github.com/JavaBWAPI/JBWAPI
Issues11 (11)https://redirect.github.com/JavaBWAPI/JBWAPI/issues
Pull requests4 (4)https://redirect.github.com/JavaBWAPI/JBWAPI/pulls
Actionshttps://redirect.github.com/JavaBWAPI/JBWAPI/actions
Security and qualityhttps://redirect.github.com/JavaBWAPI/JBWAPI/security
Insightshttps://redirect.github.com/JavaBWAPI/JBWAPI/insights
Sign up for GitHub https://redirect.github.com/signup?return_to=%2FJavaBWAPI%2FJBWAPI%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://redirect.github.com/login?return_to=%2FJavaBWAPI%2FJBWAPI%2Fissues%2Fnew%2Fchoose
dganthttps://redirect.github.com/dgant
JavaBWAPI:implement-memory-safehttps://redirect.github.com/JavaBWAPI/JBWAPI/tree/implement-memory-safe
dgant:codex/pr105-unsafe-asynchttps://redirect.github.com/dgant/JBWAPI/tree/codex/pr105-unsafe-async
Conversation 2 https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106
Commits 1 https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/commits
Checks 5 https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/checks
Files changed https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
Please reload this pagehttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
Preserve unsafe async reads with packed frame buffers https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#top
Show all changes 1 commit https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
7cb1c0f Keep unsafe async accesses consistent across packed buffer handoffs dgant Nov 6, 2026 https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/commits/7cb1c0f118f672d2cd704b7385a21df4d6756a6b
Clear filters https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
Please reload this pagehttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
Please reload this pagehttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
AsyncClientData.java https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-22a0b173af205fa90d54c3e0a421b6c70815ddcd66b04bf5b34b38fd1e1e6313
ClientData.java https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-00830ad64f5d24ba2aa17119d56dc078851f08d9548c5e387fb603d357495464
WrappedBuffer.java https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-f05e14eb9a939f6122c02c97c4e9d6314023e71efb367bfb9cc814b16c60df2d
DumpToClient.java https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-60bea109a7049b01c32bd66cf410c379bc3a56c177eb41bd9fe482b768edc25a
AsyncClientDataTest.java https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-a05325721aeaf8c4d3b352df21b692144d0514c55d3208822eaa710693f3271c
SynchronizationEnvironment.java https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-b13330409f76211c0f221280ef0975e881191b456a95dd8fae63dc46bf5d678b
SynchronizationTest.java https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-cecb2f8a87f27fd53ae921e2f11dd1d42c491ca1769078104c38f311ba38b689
src/main/java/bwapi/AsyncClientData.javahttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-22a0b173af205fa90d54c3e0a421b6c70815ddcd66b04bf5b34b38fd1e1e6313
View file https://redirect.github.com/JavaBWAPI/JBWAPI/blob/7cb1c0f118f672d2cd704b7385a21df4d6756a6b/src/main/java/bwapi/AsyncClientData.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/{{ revealButtonHref }}
https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-22a0b173af205fa90d54c3e0a421b6c70815ddcd66b04bf5b34b38fd1e1e6313
https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-22a0b173af205fa90d54c3e0a421b6c70815ddcd66b04bf5b34b38fd1e1e6313
https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-22a0b173af205fa90d54c3e0a421b6c70815ddcd66b04bf5b34b38fd1e1e6313
https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-22a0b173af205fa90d54c3e0a421b6c70815ddcd66b04bf5b34b38fd1e1e6313
https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-22a0b173af205fa90d54c3e0a421b6c70815ddcd66b04bf5b34b38fd1e1e6313
src/main/java/bwapi/ClientData.javahttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-00830ad64f5d24ba2aa17119d56dc078851f08d9548c5e387fb603d357495464
View file https://redirect.github.com/JavaBWAPI/JBWAPI/blob/7cb1c0f118f672d2cd704b7385a21df4d6756a6b/src/main/java/bwapi/ClientData.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/{{ revealButtonHref }}
https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-00830ad64f5d24ba2aa17119d56dc078851f08d9548c5e387fb603d357495464
https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-00830ad64f5d24ba2aa17119d56dc078851f08d9548c5e387fb603d357495464
src/main/java/bwapi/WrappedBuffer.javahttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-f05e14eb9a939f6122c02c97c4e9d6314023e71efb367bfb9cc814b16c60df2d
View file https://redirect.github.com/JavaBWAPI/JBWAPI/blob/7cb1c0f118f672d2cd704b7385a21df4d6756a6b/src/main/java/bwapi/WrappedBuffer.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/{{ revealButtonHref }}
https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-f05e14eb9a939f6122c02c97c4e9d6314023e71efb367bfb9cc814b16c60df2d
JasperGeurtzhttps://redirect.github.com/JasperGeurtz
Nov 6, 2026https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#r4496689880
Please reload this pagehttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
dganthttps://redirect.github.com/dgant
Nov 6, 2026https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#r4496992301
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
https://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files#diff-f05e14eb9a939f6122c02c97c4e9d6314023e71efb367bfb9cc814b16c60df2d
Please reload this pagehttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
Please reload this pagehttps://redirect.github.com/JavaBWAPI/JBWAPI/pull/106/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.