google-protobuf 4.35.0.rc.1-java → 4.35.0.rc.2-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/google/protobuf_c/ruby-upb.c +23 -13
- data/ext/google/protobuf_c/ruby-upb.h +15 -2
- data/lib/google/protobuf_java.jar +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 637fa08b3283dbf67a6e92de39e6eeb0a8ab1c0bcc6e93595f1353cbfeb75743
|
|
4
|
+
data.tar.gz: 06b8f6da5c3541fe36efcbdca3e61600d83667543a4c98fc3b020574ff6b812e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c8a21dfe607bee7cbea64a82c5b10672da016aff62b57332a1c03a7fa5a174695a5108ad08c0a24acd0e7e509ab31a86cfebaff899ecbb179b3718f9b5670c3
|
|
7
|
+
data.tar.gz: 47663229807a89c8a44c46b34153a993c2fe900ace667e49383a0695fed253ac76b8a1f8a87563d938a39d6a1f83d7c2f9bac3fd7c690076035262bcadf73a5d
|
|
@@ -558,7 +558,15 @@ Error, UINTPTR_MAX is undefined
|
|
|
558
558
|
// }
|
|
559
559
|
// }
|
|
560
560
|
|
|
561
|
+
#if defined(__GNUC__) && !defined(__clang__)
|
|
562
|
+
// GCC can't handle mismatched retain attributes in the same section:
|
|
563
|
+
// https://github.com/protocolbuffers/protobuf/issues/26385
|
|
564
|
+
// To work around this, we retain all linker array elements, even though this
|
|
565
|
+
// effectively disables tree-shaking of unused extensions when using GCC.
|
|
566
|
+
#define UPB_LINKARR_ATTR UPB_RETAIN
|
|
567
|
+
#else
|
|
561
568
|
#define UPB_LINKARR_ATTR
|
|
569
|
+
#endif
|
|
562
570
|
|
|
563
571
|
#define UPB_LINKARR_SENTINEL UPB_RETAIN __attribute__((weak, used))
|
|
564
572
|
|
|
@@ -2980,6 +2988,8 @@ const uint32_t* upb_exttable_remove(upb_exttable* t, const void* k,
|
|
|
2980
2988
|
return NULL;
|
|
2981
2989
|
}
|
|
2982
2990
|
|
|
2991
|
+
size_t upb_exttable_size(const upb_exttable* t) { return t->t.count; }
|
|
2992
|
+
|
|
2983
2993
|
/* upb_inttable ***************************************************************/
|
|
2984
2994
|
|
|
2985
2995
|
/* For inttables we use a hybrid structure where small keys are kept in an
|
|
@@ -10370,7 +10380,12 @@ const upb_MiniTableExtension* upb_ExtensionRegistry_Lookup(
|
|
|
10370
10380
|
return (const upb_MiniTableExtension*)v;
|
|
10371
10381
|
}
|
|
10372
10382
|
|
|
10383
|
+
size_t upb_ExtensionRegistry_Size(const upb_ExtensionRegistry* r) {
|
|
10384
|
+
return upb_exttable_size(&r->exts);
|
|
10385
|
+
}
|
|
10386
|
+
|
|
10373
10387
|
|
|
10388
|
+
#include <stddef.h>
|
|
10374
10389
|
#include <stdint.h>
|
|
10375
10390
|
|
|
10376
10391
|
|
|
@@ -10398,21 +10413,17 @@ static bool _upb_GeneratedRegistry_AddAllLinkedExtensions(
|
|
|
10398
10413
|
const UPB_PRIVATE(upb_GeneratedExtensionListEntry)* entry =
|
|
10399
10414
|
UPB_PRIVATE(upb_generated_extension_list);
|
|
10400
10415
|
while (entry != NULL) {
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
uintptr_t end = (uintptr_t)entry->stop;
|
|
10405
|
-
uintptr_t current = begin;
|
|
10406
|
-
while (current < end) {
|
|
10407
|
-
const upb_MiniTableExtension* ext =
|
|
10408
|
-
(const upb_MiniTableExtension*)current;
|
|
10416
|
+
const upb_MiniTableExtension** current = entry->start;
|
|
10417
|
+
for (current = entry->start; current != entry->stop; ++current) {
|
|
10418
|
+
const upb_MiniTableExtension* ext = *current;
|
|
10409
10419
|
// Sentinels and padding introduced by the linker can result in zeroed
|
|
10410
10420
|
// entries, so simply skip them.
|
|
10411
|
-
if (
|
|
10421
|
+
if (*current == NULL) {
|
|
10412
10422
|
// MSVC introduces padding that might not be sized exactly the same as
|
|
10413
|
-
//
|
|
10414
|
-
//
|
|
10415
|
-
|
|
10423
|
+
// the linker array element, but it should be properly aligned, so just
|
|
10424
|
+
// skipping empty elements should be safe. (If the size and align of
|
|
10425
|
+
// the array elements was different, we'd have to do something more
|
|
10426
|
+
// complicated).
|
|
10416
10427
|
continue;
|
|
10417
10428
|
}
|
|
10418
10429
|
|
|
@@ -10420,7 +10431,6 @@ static bool _upb_GeneratedRegistry_AddAllLinkedExtensions(
|
|
|
10420
10431
|
kUpb_ExtensionRegistryStatus_Ok) {
|
|
10421
10432
|
return false;
|
|
10422
10433
|
}
|
|
10423
|
-
current += sizeof(upb_MiniTableExtension);
|
|
10424
10434
|
}
|
|
10425
10435
|
entry = entry->next;
|
|
10426
10436
|
}
|
|
@@ -557,7 +557,15 @@ Error, UINTPTR_MAX is undefined
|
|
|
557
557
|
// }
|
|
558
558
|
// }
|
|
559
559
|
|
|
560
|
+
#if defined(__GNUC__) && !defined(__clang__)
|
|
561
|
+
// GCC can't handle mismatched retain attributes in the same section:
|
|
562
|
+
// https://github.com/protocolbuffers/protobuf/issues/26385
|
|
563
|
+
// To work around this, we retain all linker array elements, even though this
|
|
564
|
+
// effectively disables tree-shaking of unused extensions when using GCC.
|
|
565
|
+
#define UPB_LINKARR_ATTR UPB_RETAIN
|
|
566
|
+
#else
|
|
560
567
|
#define UPB_LINKARR_ATTR
|
|
568
|
+
#endif
|
|
561
569
|
|
|
562
570
|
#define UPB_LINKARR_SENTINEL UPB_RETAIN __attribute__((weak, used))
|
|
563
571
|
|
|
@@ -5806,6 +5814,9 @@ upb_ExtensionRegistryStatus upb_ExtensionRegistry_AddArray(
|
|
|
5806
5814
|
UPB_API const upb_MiniTableExtension* upb_ExtensionRegistry_Lookup(
|
|
5807
5815
|
const upb_ExtensionRegistry* r, const upb_MiniTable* t, uint32_t num);
|
|
5808
5816
|
|
|
5817
|
+
// Returns the number of extensions in the registry. For testing/debugging only.
|
|
5818
|
+
UPB_API size_t upb_ExtensionRegistry_Size(const upb_ExtensionRegistry* r);
|
|
5819
|
+
|
|
5809
5820
|
#ifdef __cplusplus
|
|
5810
5821
|
} /* extern "C" */
|
|
5811
5822
|
#endif
|
|
@@ -5916,8 +5927,8 @@ extern "C" {
|
|
|
5916
5927
|
#endif
|
|
5917
5928
|
|
|
5918
5929
|
typedef struct UPB_PRIVATE(upb_GeneratedExtensionListEntry) {
|
|
5919
|
-
const struct upb_MiniTableExtension
|
|
5920
|
-
const struct upb_MiniTableExtension
|
|
5930
|
+
const struct upb_MiniTableExtension** start;
|
|
5931
|
+
const struct upb_MiniTableExtension** stop;
|
|
5921
5932
|
const struct UPB_PRIVATE(upb_GeneratedExtensionListEntry) * next;
|
|
5922
5933
|
} UPB_PRIVATE(upb_GeneratedExtensionListEntry);
|
|
5923
5934
|
|
|
@@ -6317,6 +6328,8 @@ const uint32_t* upb_exttable_lookup(const upb_exttable* t, const void* k,
|
|
|
6317
6328
|
const uint32_t* upb_exttable_remove(upb_exttable* t, const void* k,
|
|
6318
6329
|
uint32_t ext_number);
|
|
6319
6330
|
|
|
6331
|
+
size_t upb_exttable_size(const upb_exttable* t);
|
|
6332
|
+
|
|
6320
6333
|
#ifdef __cplusplus
|
|
6321
6334
|
} /* extern "C" */
|
|
6322
6335
|
#endif
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-protobuf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.35.0.rc.
|
|
4
|
+
version: 4.35.0.rc.2
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Protobuf Authors
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-05-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -202,7 +202,7 @@ homepage: https://developers.google.com/protocol-buffers
|
|
|
202
202
|
licenses:
|
|
203
203
|
- BSD-3-Clause
|
|
204
204
|
metadata:
|
|
205
|
-
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v4.35.0-
|
|
205
|
+
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v4.35.0-rc2/ruby
|
|
206
206
|
post_install_message:
|
|
207
207
|
rdoc_options: []
|
|
208
208
|
require_paths:
|