Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
golang-github-coreos-bbolt (0.3.10-2deepin1) unstable; urgency=medium

* feat: add sw64 support

-- Deepin Packages Builder <[email protected]> Wed, 14 May 2025 10:39:17 +0800

golang-github-coreos-bbolt (1.3.10-2) unstable; urgency=medium

* Team upload
Expand Down
31 changes: 31 additions & 0 deletions debian/patches/0003-feat-add-sw64-support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From 38dba0fd512b4e2531a5f3db5ca8dfc6dbe8ed97 Mon Sep 17 00:00:00 2001
From: hudeng <[email protected]>
Date: Wed, 14 May 2025 10:38:44 +0800
Subject: [PATCH] feat: add sw64 support

---
bolt_sw64.go | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 bolt_sw64.go

diff --git a/bolt_sw64.go b/bolt_sw64.go
new file mode 100644
index 0000000..51e7ebd
--- /dev/null
+++ b/bolt_sw64.go
@@ -0,0 +1,12 @@
+// +build sw64
+
+package bolt
+
+// maxMapSize represents the largest mmap size supported by Bolt.
+const maxMapSize = 0xFFFFFFFFFFFF // 256TB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0x7FFFFFFF
+
+// Are unaligned load/stores broken on this arch?
+var brokenUnaligned = false
--
2.45.2

1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
0001-Increase-write-waiting-time-when-testing.patch
0002-Skip-OOM-tests.patch
0003-feat-add-sw64-support.patch
Loading