Skip to content

Commit e1b26ea

Browse files
committed
Update patches
1 parent d37133a commit e1b26ea

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

third-party/patches/agave.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ index 4e764de..93cfd6c 100644
6464
[dev-dependencies]
6565
assert_matches = { workspace = true }
6666
diff --git a/program-runtime/src/invoke_context.rs b/program-runtime/src/invoke_context.rs
67-
index a54e083..4681ab6 100644
67+
index a54e083..05b63f8 100644
6868
--- a/program-runtime/src/invoke_context.rs
6969
+++ b/program-runtime/src/invoke_context.rs
7070
@@ -121,4 +121,5 @@ impl fmt::Display for AllocErr {
@@ -87,13 +87,13 @@ index a54e083..4681ab6 100644
8787
+ #[serde(with = "test_fuzz::serde_ref")]
8888
sysvar_cache: &'a SysvarCache,
8989
}
90-
@@ -177,4 +184,5 @@ impl<'a> EnvironmentConfig<'a> {
90+
@@ -177,4 +181,5 @@ impl<'a> EnvironmentConfig<'a> {
9191
}
9292

9393
+#[derive(Clone, serde::Deserialize, serde::Serialize)]
9494
pub struct SyscallContext {
9595
pub allocator: BpfAllocator,
96-
@@ -183,5 +191,11 @@ pub struct SyscallContext {
96+
@@ -183,5 +188,11 @@ pub struct SyscallContext {
9797
}
9898

9999
-#[derive(Debug, Clone)]
@@ -106,7 +106,7 @@ index a54e083..4681ab6 100644
106106
+#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
107107
pub struct SerializedAccountMetadata {
108108
pub original_data_len: usize,
109-
@@ -192,9 +206,24 @@ pub struct SerializedAccountMetadata {
109+
@@ -192,9 +203,24 @@ pub struct SerializedAccountMetadata {
110110
}
111111

112112
+fn default_program_cache_for_tx_batch<'de, D>(
@@ -131,13 +131,13 @@ index a54e083..4681ab6 100644
131131
+ )]
132132
pub program_cache_for_tx_batch: &'a mut ProgramCacheForTxBatch,
133133
/// Runtime configurations used to provision the invocation environment.
134-
@@ -207,4 +239,5 @@ pub struct InvokeContext<'a> {
134+
@@ -207,4 +233,5 @@ pub struct InvokeContext<'a> {
135135
log_collector: Option<Rc<RefCell<LogCollector>>>,
136136
/// Latest measurement not yet accumulated in [ExecuteDetailsTimings::execute_us]
137137
+ #[serde(skip)]
138138
pub execute_time: Option<Measure>,
139139
pub timings: ExecuteDetailsTimings,
140-
@@ -213,4 +246,23 @@ pub struct InvokeContext<'a> {
140+
@@ -213,4 +240,23 @@ pub struct InvokeContext<'a> {
141141
}
142142

143143
+impl<'a> Clone for InvokeContext<'a> {

third-party/patches/solana.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ index 0657df5..f1bd04f 100644
2121
pub struct ComputeBudget {
2222
/// Number of compute units that a transaction or individual instruction is
2323
diff --git a/program-runtime/src/invoke_context.rs b/program-runtime/src/invoke_context.rs
24-
index 5b2d417..1ff0e77 100644
24+
index 5b2d417..97c388f 100644
2525
--- a/program-runtime/src/invoke_context.rs
2626
+++ b/program-runtime/src/invoke_context.rs
2727
@@ -111,4 +111,5 @@ impl fmt::Display for AllocErr {
@@ -66,15 +66,15 @@ index 5b2d417..1ff0e77 100644
6666
+ #[serde(with = "test_fuzz::serde_ref")]
6767
sysvar_cache: &'a SysvarCache,
6868
log_collector: Option<Rc<RefCell<LogCollector>>>,
69-
@@ -161,5 +185,7 @@ pub struct InvokeContext<'a> {
69+
@@ -161,5 +179,7 @@ pub struct InvokeContext<'a> {
7070
current_compute_budget: ComputeBudget,
7171
compute_meter: RefCell<u64>,
7272
+ #[serde(skip_serializing, deserialize_with = "default_loaded_programs")]
7373
pub programs_loaded_for_tx_batch: &'a LoadedProgramsForTxBatch,
7474
+ #[serde(skip_serializing, deserialize_with = "default_loaded_programs")]
7575
pub programs_modified_by_tx: &'a mut LoadedProgramsForTxBatch,
7676
pub feature_set: Arc<FeatureSet>,
77-
@@ -171,4 +197,23 @@ pub struct InvokeContext<'a> {
77+
@@ -171,4 +191,23 @@ pub struct InvokeContext<'a> {
7878
}
7979

8080
+impl<'a> Clone for InvokeContext<'a> {

third-party/patches/solana_rbpf.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ index 781ce87..a999428 100644
1616
+
1717
+[workspace]
1818
diff --git a/src/memory_region.rs b/src/memory_region.rs
19-
index e0ebfe6..a724fd4 100644
19+
index e0ebfe6..64f1fa0 100644
2020
--- a/src/memory_region.rs
2121
+++ b/src/memory_region.rs
2222
@@ -34,5 +34,5 @@ use std::{
@@ -314,21 +314,21 @@ index e0ebfe6..a724fd4 100644
314314
+
315315
impl fmt::Debug for AlignedMemoryMapping<'_> {
316316
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
317-
@@ -728,5 +907,5 @@ impl<'a> AlignedMemoryMapping<'a> {
317+
@@ -728,5 +904,5 @@ impl<'a> AlignedMemoryMapping<'a> {
318318

319319
/// Maps virtual memory to host memory.
320320
-#[derive(Debug)]
321321
+#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
322322
pub enum MemoryMapping<'a> {
323323
/// Used when address translation is disabled
324-
@@ -736,5 +915,5 @@ pub enum MemoryMapping<'a> {
324+
@@ -736,5 +912,5 @@ pub enum MemoryMapping<'a> {
325325
Aligned(AlignedMemoryMapping<'a>),
326326
/// Memory mapping that allows mapping unaligned memory regions.
327327
- Unaligned(UnalignedMemoryMapping<'a>),
328328
+ Unaligned(UnalignedMemoryMapping),
329329
}
330330

331-
@@ -906,5 +1085,5 @@ fn generate_access_violation(
331+
@@ -906,5 +1082,5 @@ fn generate_access_violation(
332332

333333
/// Fast, small linear cache used to speed up unaligned memory mapping.
334334
-#[derive(Debug)]

0 commit comments

Comments
 (0)