mini_racer 0.2.12 → 0.2.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35ced47bf0cd66e605b6bd14005c23381b9fa42e438b0ab45a3c99414d107634
4
- data.tar.gz: '02968be5850b866d1c399995cb6d942dc826730447524df008f604035449050e'
3
+ metadata.gz: 420c1d474734931c13f1246154eb045600ce24db66c05904c5df19681a03e41b
4
+ data.tar.gz: 403320470422a7085305e6139cf769cdd5fe7e0df236830038d412ac2558c961
5
5
  SHA512:
6
- metadata.gz: 3c4fc5f71bcfddd5d58f5b0ae0f68e4b59067005362afbf29f096752f63fab9ea0d0526f2ba02d5a85f89976e607eae395c3714b6186282a6bce19217ae86ec0
7
- data.tar.gz: 3d6268a03f472c01fa68278e4349c18b270765a8e831b020286a929b0fd0f2a1422b2c0c11432a33a348ec28044a38acdcd55d4cff93b436acc2fbed07ddfdf8
6
+ metadata.gz: ef58b7272a5f641f3dc264241414d45cde6d689a34d3433b5a039dc1caeac054c435150a3b5c2532f7957efad083584fe43d4a6c8b21789c542d611c632ae080
7
+ data.tar.gz: 74b33249d8141b4d869b3c8f74617e40e271c36e472b32950391a061d27069c9b108a29884acf056ce1467c4bc3c22a6f4f84e022df53153cf30ccae387c69f1
data/CHANGELOG CHANGED
@@ -1,5 +1,10 @@
1
1
  - 15-05-2020
2
2
 
3
+ - 0.2.13
4
+ - FIX: edge case around ensure_gc_after_idle possibly firing when context is not idle
5
+
6
+ - 15-05-2020
7
+
3
8
  - 0.2.12
4
9
 
5
10
  - FEATURE: isolate.low_memory_notification which can force a full GC
@@ -299,13 +299,14 @@ module MiniRacer
299
299
  break
300
300
  end
301
301
 
302
- if @ensure_gc_after_idle < now - @last_eval
302
+ if !@eval_thread && @ensure_gc_after_idle < now - @last_eval
303
303
  @ensure_gc_mutex.synchronize do
304
304
  isolate_mutex.synchronize do
305
- # extra 50ms to make sure that we really have enough time
306
- isolate.low_memory_notification if !@disposed
307
- @ensure_gc_thread = nil
308
- done = true
305
+ if !@eval_thread
306
+ isolate.low_memory_notification if !@disposed
307
+ @ensure_gc_thread = nil
308
+ done = true
309
+ end
309
310
  end
310
311
  end
311
312
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module MiniRacer
2
- VERSION = "0.2.12"
4
+ VERSION = "0.2.13"
3
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_racer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
@@ -108,9 +108,9 @@ licenses:
108
108
  - MIT
109
109
  metadata:
110
110
  bug_tracker_uri: https://github.com/discourse/mini_racer/issues
111
- changelog_uri: https://github.com/discourse/mini_racer/blob/v0.2.12/CHANGELOG
112
- documentation_uri: https://www.rubydoc.info/gems/mini_racer/0.2.12
113
- source_code_uri: https://github.com/discourse/mini_racer/tree/v0.2.12
111
+ changelog_uri: https://github.com/discourse/mini_racer/blob/v0.2.13/CHANGELOG
112
+ documentation_uri: https://www.rubydoc.info/gems/mini_racer/0.2.13
113
+ source_code_uri: https://github.com/discourse/mini_racer/tree/v0.2.13
114
114
  post_install_message:
115
115
  rdoc_options: []
116
116
  require_paths: