sqreen 1.16.0 → 1.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sqreen/js/mini_racer_adapter.rb +7 -8
- data/lib/sqreen/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: f14c1978c48e3db55da6c20eb782a5313066c357038b215821652be20bec7a90
|
4
|
+
data.tar.gz: 91eee47349717f3d760ede2086586a3ab009449acadcdbb4b4120586afe7601c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c92239048effb55846ac2777d59f92b73295d13548cc881ccd6686a4191d7691a4238a59f94820d99eb01f5435d8874d7afdb60518cafb0c4337b317969a18b
|
7
|
+
data.tar.gz: 3c2f2413eb44ede4c346f07d9956cd49b511cad33e6f8c0962c41cb34ef146bf973eb02861ce0984b486ea43a6dcd80f4848450d74c990447926b5c93bbf3684
|
@@ -3,7 +3,8 @@ require 'json'
|
|
3
3
|
|
4
4
|
module Sqreen
|
5
5
|
module Js
|
6
|
-
|
6
|
+
DEFAULT_GC_THRESHOLD = 15000000 # 15 MB
|
7
|
+
|
7
8
|
|
8
9
|
class MiniRacerAdapter < JsServiceAdapter
|
9
10
|
def initialize(vendored = false)
|
@@ -65,13 +66,13 @@ module Sqreen
|
|
65
66
|
if context.gc_load > 30
|
66
67
|
if context.gc_threshold_in_bytes == DEFAULT_GC_THRESHOLD
|
67
68
|
context.gc_threshold_in_bytes *= 2
|
68
|
-
Sqreen.log.warn(
|
69
|
-
'doubling the threshold to
|
70
|
-
context
|
69
|
+
Sqreen.log.warn("Context #{context} had too many close garbage " \
|
70
|
+
'collections; doubling the threshold to ' \
|
71
|
+
"#{context.gc_threshold_in_bytes} bytes")
|
71
72
|
context.gc_load = 0
|
72
73
|
else
|
73
|
-
Sqreen.log.warn(
|
74
|
-
'collections; discarding it'
|
74
|
+
Sqreen.log.warn("Context #{context} had too many close garbage " \
|
75
|
+
'collections; discarding it')
|
75
76
|
context.dispose
|
76
77
|
return
|
77
78
|
end
|
@@ -126,8 +127,6 @@ module Sqreen
|
|
126
127
|
private
|
127
128
|
|
128
129
|
class << self
|
129
|
-
DEFAULT_GC_THRESHOLD = 15000000 # 15 MB
|
130
|
-
|
131
130
|
def define_sqreen_context(modoole)
|
132
131
|
# Context specialized for Sqreen usage
|
133
132
|
Sqreen::Js.const_set 'SqreenContext', Class.new(modoole.const_get('Context'))
|
data/lib/sqreen/version.rb
CHANGED