Skip to content

Commit

Permalink
update patches
Browse files Browse the repository at this point in the history
  • Loading branch information
electron-bot authored and ppontes committed Apr 27, 2021
1 parent 36a5aac commit 17f0b59
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions patches/chromium/cherry-pick-1028ffc9bd83.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
From 1028ffc9bd836eadc3fb89c3fb96fec7bd059557 Mon Sep 17 00:00:00 2001
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Bill Budge <bbudge@chromium.org>
Date: Tue, 20 Apr 2021 15:22:33 +0000
Subject: [PATCH] M86-LTS: [GeneratedCodeCache] Copy large data before hashing and writing
Subject: M86-LTS: [GeneratedCodeCache] Copy large data before hashing and
writing

- Makes a copy before hashing and writing large code entries.

Expand All @@ -20,13 +21,12 @@ Commit-Queue: Achuith Bhandarkar <achuith@chromium.org>
Owners-Override: Achuith Bhandarkar <achuith@chromium.org>
Cr-Commit-Position: refs/branch-heads/4240@{#1612}
Cr-Branched-From: f297677702651916bbf65e59c0d4bbd4ce57d1ee-refs/heads/master@{#800218}
---

diff --git a/content/browser/code_cache/generated_code_cache.cc b/content/browser/code_cache/generated_code_cache.cc
index 69d1f92..f4d0844 100644
index dd5c28f92503ce95082b9b6b6254f6922e5b81ac..4b71cde691a7a89344a556396780ce71cf7aebf7 100644
--- a/content/browser/code_cache/generated_code_cache.cc
+++ b/content/browser/code_cache/generated_code_cache.cc
@@ -384,9 +384,18 @@
@@ -382,9 +382,18 @@ void GeneratedCodeCache::WriteEntry(const GURL& url,
// [stream1] <empty>
// [stream0 (checksum key entry)] <empty>
// [stream1 (checksum key entry)] data
Expand All @@ -46,7 +46,7 @@ index 69d1f92..f4d0844 100644
result, base::size(result));
std::string checksum_key = base::HexEncode(result, base::size(result));
small_buffer = base::MakeRefCounted<net::IOBufferWithSize>(
@@ -401,7 +410,7 @@
@@ -399,7 +408,7 @@ void GeneratedCodeCache::WriteEntry(const GURL& url,
// Issue another write operation for the code, with the checksum as the key
// and nothing in the header.
auto small_buffer2 = base::MakeRefCounted<net::IOBufferWithSize>(0);
Expand Down

0 comments on commit 17f0b59

Please sign in to comment.