skylight 7.1.0 → 7.1.1
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/CHANGELOG.md +4 -0
- data/ext/extconf.rb +4 -4
- data/ext/skylight_memprof.c +5 -5
- data/ext/skylight_native.c +1 -1
- data/lib/skylight/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb1aa9e97569dad5f875188d9b9950ce95e2f760cecbf47e56d1a111a3bb3d4b
|
|
4
|
+
data.tar.gz: 077b6c9517691116e216022f9f5e810edc7173c262a66d99446b49341efbe51a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28a23bdc8e24bd10150a23d917bb669cdebfafb5422046f9c1fe7c0aebee7a12e2f31ca8aee12430e50e32956ef54581b63481f81616fdcf2edecf41ab86ddc2
|
|
7
|
+
data.tar.gz: c41a8135ee576517a9f1f4f096fc9bb30f024e45e1918a3c19ca21e480f21b9ddecba70527734a660fe9723bc25feffcaae605bc0966d4d19a488b308d66166b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 7.1.1 (April 17, 2026)
|
|
2
|
+
- BUGFIX Fix native extension build on GCC 15 by using `append_cflags` instead of mutating `$CFLAGS` directly.
|
|
3
|
+
- BUGFIX Replace K&R-style empty parameter lists (`()`) with `(void)` in C sources to build cleanly under Fedora's `-Werror=old-style-definition`.
|
|
4
|
+
|
|
1
5
|
## 7.1.0 (January 20, 2025)
|
|
2
6
|
- BREAKING end support for Rails < 7.2.
|
|
3
7
|
- IMPROVEMENT better support for Grape 3.x
|
data/ext/extconf.rb
CHANGED
|
@@ -228,7 +228,7 @@ end
|
|
|
228
228
|
# flag can cause issues for some customers we're turning it off by default. However,
|
|
229
229
|
# in development and CI, we still have the option of turning it back on to help catch
|
|
230
230
|
# potential issues.
|
|
231
|
-
|
|
231
|
+
append_cflags(["-Werror"]) if SKYLIGHT_EXT_STRICT
|
|
232
232
|
|
|
233
233
|
checking_for "fast thread local storage" do
|
|
234
234
|
if try_compile("__thread int foo;")
|
|
@@ -238,15 +238,15 @@ checking_for "fast thread local storage" do
|
|
|
238
238
|
end
|
|
239
239
|
|
|
240
240
|
# Flag -std=c99 required for older build systems
|
|
241
|
-
|
|
241
|
+
append_cflags(["-std=c99", "-Wall", "-fno-strict-aliasing"])
|
|
242
242
|
|
|
243
243
|
# Allow stricter checks to be turned on for development or debugging
|
|
244
244
|
if SKYLIGHT_EXT_STRICT
|
|
245
|
-
|
|
245
|
+
append_cflags(["-Wextra"])
|
|
246
246
|
|
|
247
247
|
# Enabling unused-parameter causes failures in Ruby 2.6+
|
|
248
248
|
# ruby/ruby.h:2186:35: error: unused parameter 'allow_transient'
|
|
249
|
-
|
|
249
|
+
append_cflags(["-Wno-error=unused-parameter"])
|
|
250
250
|
end
|
|
251
251
|
|
|
252
252
|
# TODO: Compute the relative path to the location
|
data/ext/skylight_memprof.c
CHANGED
|
@@ -12,7 +12,7 @@ typedef struct {
|
|
|
12
12
|
// Use the __thread directive
|
|
13
13
|
static __thread sky_allocations_t sky_allocations;
|
|
14
14
|
|
|
15
|
-
static inline sky_allocations_t* get_allocations() {
|
|
15
|
+
static inline sky_allocations_t* get_allocations(void) {
|
|
16
16
|
return &sky_allocations;
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -25,11 +25,11 @@ static pthread_key_t ALLOCATIONS_KEY;
|
|
|
25
25
|
|
|
26
26
|
static pthread_once_t KEY_INIT_ONCE = PTHREAD_ONCE_INIT;
|
|
27
27
|
|
|
28
|
-
static void init_allocations_key() {
|
|
28
|
+
static void init_allocations_key(void) {
|
|
29
29
|
pthread_key_create(&ALLOCATIONS_KEY, free);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
static sky_allocations_t* get_allocations() {
|
|
32
|
+
static sky_allocations_t* get_allocations(void) {
|
|
33
33
|
sky_allocations_t* ret;
|
|
34
34
|
|
|
35
35
|
// Initialize the TLS key
|
|
@@ -69,7 +69,7 @@ uint64_t sky_allocation_count(void) {
|
|
|
69
69
|
return get_allocations()->allocations;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
uint64_t sky_consume_allocations() {
|
|
72
|
+
uint64_t sky_consume_allocations(void) {
|
|
73
73
|
uint64_t ret = get_allocations()->allocations;
|
|
74
74
|
sky_clear_allocation_count();
|
|
75
75
|
return ret;
|
|
@@ -100,7 +100,7 @@ uint64_t sky_allocation_count(void) {
|
|
|
100
100
|
return 0;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
uint64_t sky_consume_allocations() {
|
|
103
|
+
uint64_t sky_consume_allocations(void) {
|
|
104
104
|
return 0;
|
|
105
105
|
}
|
|
106
106
|
|
data/ext/skylight_native.c
CHANGED
|
@@ -553,7 +553,7 @@ trace_span_set_exception(VALUE self, VALUE span, VALUE exception, VALUE exceptio
|
|
|
553
553
|
return Qnil;
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
void Init_skylight_native() {
|
|
556
|
+
void Init_skylight_native(void) {
|
|
557
557
|
rb_mSkylight = rb_define_module("Skylight");
|
|
558
558
|
|
|
559
559
|
rb_eNativeError = rb_const_get(rb_mSkylight, rb_intern("NativeError"));
|
data/lib/skylight/version.rb
CHANGED