mini_racer 0.17.0.pre12 → 0.17.0.pre13
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 +4 -1
- data/ext/mini_racer_extension/mini_racer_extension.c +5 -1
- data/lib/mini_racer/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02c93cf015b4c5e591ce5f6b3f61b787c3c12ea1d98b33dde6879461140ef9bd
|
4
|
+
data.tar.gz: f77c6dbdee02fedcea41a2fe077aa71bc30c2c0dbc0630a1c09ebc90f075e4a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b9370d3e4aa2bb017e9c450651381bc3b11880bcfee9448949cdc1cb0a7c01a3bb0836112c10a32d2f9c199c687cea16a5374142e9ba5201b5c526e524b09dc
|
7
|
+
data.tar.gz: fecf25f26fa787280cc22eccd13deeee4dd554a36ee23e347149bc4e6d34b6a5eab623b8454d6ad0b6ad685e06e47cf8d45625ee015b033a1ed115ffb931e181
|
data/CHANGELOG
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
- 0.17.0.
|
1
|
+
- 0.17.0.pre13 - 04-02-2025
|
2
|
+
- Only issue idle GC once post dispatch - reduces CPU usage for auto cleanup - Sam Saffron
|
3
|
+
|
4
|
+
- 0.17.0.pre12 - 23-01-2025
|
2
5
|
- Corrected off-by-one error with object serialization - Ben Noordhuis
|
3
6
|
|
4
7
|
- 0.17.0.pre11 - 21-01-2025
|
@@ -728,6 +728,7 @@ static void dispatch(Context *c)
|
|
728
728
|
void v8_thread_main(Context *c, struct State *pst)
|
729
729
|
{
|
730
730
|
struct timespec deadline;
|
731
|
+
bool issued_idle_gc = true;
|
731
732
|
|
732
733
|
c->pst = pst;
|
733
734
|
barrier_wait(&c->late_init);
|
@@ -737,8 +738,10 @@ void v8_thread_main(Context *c, struct State *pst)
|
|
737
738
|
if (c->idle_gc > 0) {
|
738
739
|
deadline = deadline_ms(c->idle_gc);
|
739
740
|
pthread_cond_timedwait(&c->cv, &c->mtx, &deadline);
|
740
|
-
if (deadline_exceeded(deadline))
|
741
|
+
if (deadline_exceeded(deadline) && !issued_idle_gc) {
|
741
742
|
v8_low_memory_notification(c->pst);
|
743
|
+
issued_idle_gc = true;
|
744
|
+
}
|
742
745
|
} else {
|
743
746
|
pthread_cond_wait(&c->cv, &c->mtx);
|
744
747
|
}
|
@@ -746,6 +749,7 @@ void v8_thread_main(Context *c, struct State *pst)
|
|
746
749
|
if (!c->req.len)
|
747
750
|
continue; // spurious wakeup or quit signal from other thread
|
748
751
|
dispatch(c);
|
752
|
+
issued_idle_gc = false;
|
749
753
|
pthread_cond_signal(&c->cv);
|
750
754
|
}
|
751
755
|
}
|
data/lib/mini_racer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_racer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.0.
|
4
|
+
version: 0.17.0.pre13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,9 +123,9 @@ licenses:
|
|
123
123
|
- MIT
|
124
124
|
metadata:
|
125
125
|
bug_tracker_uri: https://github.com/discourse/mini_racer/issues
|
126
|
-
changelog_uri: https://github.com/discourse/mini_racer/blob/v0.17.0.
|
127
|
-
documentation_uri: https://www.rubydoc.info/gems/mini_racer/0.17.0.
|
128
|
-
source_code_uri: https://github.com/discourse/mini_racer/tree/v0.17.0.
|
126
|
+
changelog_uri: https://github.com/discourse/mini_racer/blob/v0.17.0.pre13/CHANGELOG
|
127
|
+
documentation_uri: https://www.rubydoc.info/gems/mini_racer/0.17.0.pre13
|
128
|
+
source_code_uri: https://github.com/discourse/mini_racer/tree/v0.17.0.pre13
|
129
129
|
post_install_message:
|
130
130
|
rdoc_options: []
|
131
131
|
require_paths:
|