Skip to content

Commit

Permalink
Roll abseil_revision eba70b1c2f..6d41348a3c
Browse files Browse the repository at this point in the history
Change Log:
https://chromium.googlesource.com/external/github.com/abseil/abseil-cpp/+log/eba70b1c2f..6d41348a3c
Full diff:
https://chromium.googlesource.com/external/github.com/abseil/abseil-cpp/+/eba70b1c2f..6d41348a3c

Bug: None
Change-Id: Id406b766337212d52dcd4f3a0bc018825398c25c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4339638
Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
Commit-Queue: Danil Chapovalov <danilchap@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1117467}
  • Loading branch information
Danil Chapovalov authored and Chromium LUCI CQ committed Mar 15, 2023
1 parent d30cd2e commit da683c2
Show file tree
Hide file tree
Showing 36 changed files with 694 additions and 331 deletions.
1 change: 1 addition & 0 deletions third_party/abseil-cpp/BUILD.gn
Expand Up @@ -241,6 +241,7 @@ if (build_with_chromium) {
"absl/strings:str_replace_test",
"absl/strings:string_view_test",
"absl/synchronization:kernel_timeout_internal_test",
"absl/time:time_test",
"absl/types:optional_test",
"absl/types:variant_test",
"//third_party/googletest:gtest_main",
Expand Down
2 changes: 1 addition & 1 deletion third_party/abseil-cpp/README.chromium
Expand Up @@ -4,7 +4,7 @@ URL: https://github.com/abseil/abseil-cpp
License: Apache 2.0
License File: LICENSE
Version: 0
Revision: eba70b1c2f5f1684490edb573302e2fd654f1335
Revision: 6d41348a3c07d5acd4060b4c873d0801a674d059
Security Critical: yes

Description:
Expand Down
14 changes: 14 additions & 0 deletions third_party/abseil-cpp/absl/base/attributes.h
Expand Up @@ -779,4 +779,18 @@
#define ABSL_ATTRIBUTE_TRIVIAL_ABI
#endif

// ABSL_ATTRIBUTE_NO_UNIQUE_ADDRESS
//
// Indicates a data member can be optimized to occupy no space (if it is empty)
// and/or its tail padding can be used for other members.
//
// For code that is assured to only build with C++20 or later, prefer using
// the standard attribute `[[no_unique_address]]` directly instead of this
// macro.
#if ABSL_HAVE_CPP_ATTRIBUTE(no_unique_address)
#define ABSL_ATTRIBUTE_NO_UNIQUE_ADDRESS [[no_unique_address]]
#else
#define ABSL_ATTRIBUTE_NO_UNIQUE_ADDRESS
#endif

#endif // ABSL_BASE_ATTRIBUTES_H_
5 changes: 4 additions & 1 deletion third_party/abseil-cpp/absl/base/internal/thread_identity.h
Expand Up @@ -170,7 +170,10 @@ struct ThreadIdentity {
//
// Does not malloc(*), and is async-signal safe.
// [*] Technically pthread_setspecific() does malloc on first use; however this
// is handled internally within tcmalloc's initialization already.
// is handled internally within tcmalloc's initialization already. Note that
// darwin does *not* use tcmalloc, so this can catch you if using MallocHooks
// on Apple platforms. Whatever function is calling your MallocHooks will need
// to watch for recursion on Apple platforms.
//
// New ThreadIdentity objects can be constructed and associated with a thread
// by calling GetOrCreateCurrentThreadIdentity() in per-thread-sem.h.
Expand Down
4 changes: 2 additions & 2 deletions third_party/abseil-cpp/absl/crc/internal/crc.cc
Expand Up @@ -261,7 +261,7 @@ void CRC32::Extend(uint32_t* crc, const void* bytes, size_t length) const {
const uint8_t* e = p + length;
uint32_t l = *crc;

auto step_one_byte = [this, &p, &l] () {
auto step_one_byte = [this, &p, &l]() {
int c = (l & 0xff) ^ *p++;
l = this->table0_[c] ^ (l >> 8);
};
Expand Down Expand Up @@ -359,7 +359,7 @@ void CRC32::Extend(uint32_t* crc, const void* bytes, size_t length) const {

void CRC32::ExtendByZeroesImpl(uint32_t* crc, size_t length,
const uint32_t zeroes_table[256],
const uint32_t poly_table[256]) const {
const uint32_t poly_table[256]) {
if (length != 0) {
uint32_t l = *crc;
// For each ZEROES_BASE_LG bits in length
Expand Down
6 changes: 3 additions & 3 deletions third_party/abseil-cpp/absl/crc/internal/crc_internal.h
Expand Up @@ -118,9 +118,9 @@ class CRC32 : public CRCImpl {
//
// These will be set to reverse_zeroes_ and reverse_table0_ for Unextend, and
// CRC32::zeroes_ and CRC32::table0_ for Extend.
void ExtendByZeroesImpl(uint32_t* crc, size_t length,
const uint32_t zeroes_table[256],
const uint32_t poly_table[256]) const;
static void ExtendByZeroesImpl(uint32_t* crc, size_t length,
const uint32_t zeroes_table[256],
const uint32_t poly_table[256]);

uint32_t table0_[256]; // table of byte extensions
uint32_t zeroes_[256]; // table of zero extensions
Expand Down

0 comments on commit da683c2

Please sign in to comment.