good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
51ed39c0
Unverified
Commit
51ed39c0
authored
Sep 7, 2021
by
Felix Lange
Committed by
GitHub
Sep 7, 2021
Browse files
Options
Downloads
Patches
Plain Diff
core: make txPricedList.stales the first field for 64bit alignment (#23542)
This fixes crashes on 32bit builds.
parent
6ef3a168
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/tx_list.go
+6
-1
6 additions, 1 deletion
core/tx_list.go
with
6 additions
and
1 deletion
core/tx_list.go
+
6
−
1
View file @
51ed39c0
...
@@ -480,9 +480,14 @@ func (h *priceHeap) Pop() interface{} {
...
@@ -480,9 +480,14 @@ func (h *priceHeap) Pop() interface{} {
// better candidates for inclusion while in other cases (at the top of the baseFee peak)
// better candidates for inclusion while in other cases (at the top of the baseFee peak)
// the floating heap is better. When baseFee is decreasing they behave similarly.
// the floating heap is better. When baseFee is decreasing they behave similarly.
type
txPricedList
struct
{
type
txPricedList
struct
{
// Number of stale price points to (re-heap trigger).
// This field is accessed atomically, and must be the first field
// to ensure it has correct alignment for atomic.AddInt64.
// See https://golang.org/pkg/sync/atomic/#pkg-note-BUG.
stales
int64
all
*
txLookup
// Pointer to the map of all transactions
all
*
txLookup
// Pointer to the map of all transactions
urgent
,
floating
priceHeap
// Heaps of prices of all the stored **remote** transactions
urgent
,
floating
priceHeap
// Heaps of prices of all the stored **remote** transactions
stales
int64
// Number of stale price points to (re-heap trigger)
reheapMu
sync
.
Mutex
// Mutex asserts that only one routine is reheaping the list
reheapMu
sync
.
Mutex
// Mutex asserts that only one routine is reheaping the list
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment